NGINX closes the upstream connection in 60 seconds

Friscia, Michael michael.friscia at yale.edu
Thu Apr 26 12:27:39 UTC 2018


I have the same problem and used this to extent it to 2 minutes

proxy_read_timeout 120s;

___________________________________________
Michael Friscia
Office of Communications
Yale School of Medicine
(203) 737-7932 - office
(203) 931-5381 - mobile
http://web.yale.edu<http://web.yale.edu/>

From: nginx <nginx-bounces at nginx.org> on behalf of Ajay Sonawane <Ajay_Sonawane at symantec.com>
Reply-To: "nginx at nginx.org" <nginx at nginx.org>
Date: Thursday, April 26, 2018 at 8:25 AM
To: "nginx at nginx.org" <nginx at nginx.org>
Subject: NGINX closes the upstream connection in 60 seconds


I am using Nginx proxy server as a reverse proxy and https load balancer. Client connects to backend server through the reverse proxy in a load balanced environment. I have setup the correct https configuration (with ssl certificates and all) so that my ssl communication is going through proxy. In my case, server gracefully disconnect connection after 120 seconds (IDLE TIMEOUT of my server). But before that, nginx proxy itself closes after 60 seconds. This happens for every connect cycle. Due to which my client don't get ssl disconnect event and just receives tcp socket close event. If I change the IDLE_TIMEOUT of my server less than 60 seconds, everything works fine.

Want to know if there is any timeout on nginx server that I need to configure to keep the connection open for more than 60 seconds.

Ajay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20180426/d28d1879/attachment.html>


More information about the nginx mailing list