2014-02-28 19:18 GMT+01:00 Igor Katson <[email protected]>:

> Thanks, Roberto,
>
> I have periodic messages in the log saying this:
> - [uwsgi-websocket] no PONG received in 3 seconds !!!
>
> The odd thing is that if happens, there are lots of these messages coming *at
> exact same time*, and many browser pages get disconnected. Again, at
> exact same time. The client code reconnects immediately, so that's not a
> big deal, but it feels something is wrong.
>
> do you have any idea why this might happen?
>
> P.S. After reducing the timeout to 10, these messages are much rarer, but
> still happen. As they are rare, it's hard to tell if they come at the same
> time, cause uwsgi does not log timestamps on non-request output. By the
> way, is there a way for uwsgi to to that?
>
> P.P.S. This error seems to happen right after "uwsgi.websocket_send()" was
> called in the code provided. The browser receives the message, but the next
> second there's websocket.onerror called.
>
>
Hi Igor,
I'am using uwsgi-2.0.2 and I also sometimes see:
[uwsgi-websocket] no PONG received in 3 seconds !!!

This happens, whenever the browser goes idle, for instance, when the screen
saver of my laptop activates.
Unfortunately, in Javascript this does not trigger a Websocket onerror
event, otherwise it would be easy to have the browser reconnect to the
server.

- Jacob
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to