Welcome! Log In Create A New Profile

Advanced

Re: WebSockets - connection keeps closing after 1 minute

Maxim Dounin
February 20, 2013 11:08AM
Hello!

On Wed, Feb 20, 2013 at 10:57:40AM -0500, WGH wrote:

> Hello!
>
> My WebSocket connections keep closing after precisely one minute.
> The configuration is the same as provided in that commit comment.
> http://trac.nginx.org/nginx/changeset/5073/nginx
>
> Direct connections to the server (without intermediate nginx) happily live
> for many hours.
>
> What option should I change to fix that?

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).

--
Maxim Dounin
http://nginx.com/support.html

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

WebSockets - connection keeps closing after 1 minute

WGH February 20, 2013 10:57AM

Re: WebSockets - connection keeps closing after 1 minute

Maxim Dounin February 20, 2013 11:08AM

Re: WebSockets - connection keeps closing after 1 minute

WGH February 20, 2013 11:17AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 252
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