WebSockets - connection keeps closing after 1 minute

WGH nginx-forum at nginx.us
Wed Feb 20 16:17:11 UTC 2013


Maxim Dounin Wrote:
-------------------------------------------------------
> There is proxy_read_timeout (http://nginx.org/r/proxy_read_timeout) 
> which as well applies to WebSocket connections. You have to bump 
> it if your backend do not send anything for a long time. 
> Alternatively, you may configure your backend to send websocket 
> ping frames periodically to reset the timeout (and check if the 
> connection is still alive).

Thanks, raising the timeout resolved the problem.
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,236382,236386#msg-236386


More information about the nginx mailing list

AltStyle によって変換されたページ (->オリジナル) /