Welcome! Log In Create A New Profile

Advanced

Re: internal location keepalive_requests issue

Maxim Dounin
August 26, 2016 04:12PM
Hello!

On Fri, Aug 26, 2016 at 02:50:15PM -0400, crasyangel wrote:

> location /hls {
> error_page 404 = @hls;
> keepalive_requests 1000;
> }
>
> location @hls {
> # Serve HLS fragments
> types {
> application/vnd.apple.mpegurl m3u8;
> video/mp2t ts;
> }
> root /tmp;
> add_header Cache-Control no-cache;
> keepalive_requests 1000;
> }
>
> keepalive_requests must be large enough in this two location meanwhile
> if set keepalive_requests to 0 or 1 in /hls or @hls, keepalive_requests
> would not work in the other location

This is expected behaviour. Keepalive is switched off for a
request once a location selected does not allow keepalive for the
request in question (due to keepalive_requests, keepalive_timeout,
or keepalive_disable). Even if request processing is later moved
to a different location with less strict settings, keepalive
remains disabled.

--
Maxim Dounin
http://nginx.org/

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

internal location keepalive_requests issue

crasyangel August 26, 2016 02:50PM

Re: internal location keepalive_requests issue

Maxim Dounin August 26, 2016 04:12PM

Re: internal location keepalive_requests issue

crasyangel August 26, 2016 11:15PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 174
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready