How to control keepalive connections for upstream before the version of 1.15.3

yf chu cyflhn at 163.com
Mon Feb 25 13:46:56 UTC 2019


But if a connection to upstream is dead or there are some other network problems in this connection, how could Nginx handle it, will the HTTP requests on this connection be affected? For example, is it possible that the HTTP requests on this connection is hanging until timeout?  








At 2019-02-25 20:22:56, "Maxim Dounin" <mdounin at mdounin.ru> wrote:
>Hello!
>
>On Mon, Feb 25, 2019 at 03:45:27PM +0800, yf chu wrote:
>
>> The Nginx document said that there are two upstream-related 
>> directives introduced in the version of 1.15.3:  
>> "keepalive_requests" and "keepalive_timeout".  But the directive 
>> "keepalive" has already been instroduced in the version of 
>> 1.1.4. So I want to know how does Nginx handle the keepalive 
>> connections for upstream before the version 1.15.3 was released. 
>> When will the keepalive connections for upstream be closed?
>
>Before the introduction of "keepalive_requests" and 
>"keepalive_timeout" directives in 1.15.3, upstream connections 
>were simply kept open by nginx, regardless of the number of 
>requests made in these connections, or the time these connections 
>were idle.  Connections were closed when the upstream server 
>decided to close them, or when a connection was evicted from the 
>cache by other connections.
>
>-- 
>Maxim Dounin
>http://mdounin.ru/
>_______________________________________________
>nginx mailing list
>nginx at nginx.org
>http://mailman.nginx.org/mailman/listinfo/nginx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20190225/962135aa/attachment.html>


More information about the nginx mailing list