Server Disconnects Client on Timeout
Occasionally, the FOP2 server will disconnect the client. The server log shows:
2016-07-27 11:50:25,989 INFO - Disconnecting Client 75.84.163.162:51527 on timeout
2016-07-27 11:50:25,989 INFO -
2016-07-27 11:50:25,989 INFO - Client Disconnection - remove client on error from socket AnyEvent::Handle=HASH(0xc504e00) (75.84.163.162:51527)
2016-07-27 11:50:25,989 INFO -
2016-07-27 11:50:25,989 INFO - Tengo 2 sesiones para el usuario 4159672901 por lo que no ejecuto callbacks de deslogueo
and fop2.js gets the onclose handler for the websocket connection.
I do not understand what the timeout is. The client is sending the ping and the server replies with a pong:
2016-07-27 11:50:23,244 INFO - 67.180.156.186:64541 <= <msg data="1|ping
" />
2016-07-27 11:50:23,244 INFO -
2016-07-27 11:50:23,244 INFO - -- PROCESS_FLASH_COMMAND origen 1 accion ping destino password
2016-07-27 11:50:23,244 INFO -
2016-07-27 11:50:25,988 INFO - 67.180.156.186:64541 => { "btn": "0", "cmd": "pong", "data": ...
As you can see from this log excerpt the disconnect comes right after the server replies to the ping request.
What can we do to prevent this timeout and allow the client to stay connected to the server?
The server is version: 2.29.02
2016-07-27 11:50:25,989 INFO - Disconnecting Client 75.84.163.162:51527 on timeout
2016-07-27 11:50:25,989 INFO -
2016-07-27 11:50:25,989 INFO - Client Disconnection - remove client on error from socket AnyEvent::Handle=HASH(0xc504e00) (75.84.163.162:51527)
2016-07-27 11:50:25,989 INFO -
2016-07-27 11:50:25,989 INFO - Tengo 2 sesiones para el usuario 4159672901 por lo que no ejecuto callbacks de deslogueo
and fop2.js gets the onclose handler for the websocket connection.
I do not understand what the timeout is. The client is sending the ping and the server replies with a pong:
2016-07-27 11:50:23,244 INFO - 67.180.156.186:64541 <= <msg data="1|ping
" />
2016-07-27 11:50:23,244 INFO -
2016-07-27 11:50:23,244 INFO - -- PROCESS_FLASH_COMMAND origen 1 accion ping destino password
2016-07-27 11:50:23,244 INFO -
2016-07-27 11:50:25,988 INFO - 67.180.156.186:64541 => { "btn": "0", "cmd": "pong", "data": ...
As you can see from this log excerpt the disconnect comes right after the server replies to the ping request.
What can we do to prevent this timeout and allow the client to stay connected to the server?
The server is version: 2.29.02
Comments
That's an error condition from the socket itself, not from FOP2. I cannot say why you are getting those. In any case, try to stay current, upgrade FOP2 to the latest version if you can, be sure to use event filters also for the FOP2 manager user as described in the documentation.
We use google chrome. I know it have a tab discarding feature, but I've disabled that and no improvement.
http://forum.fop2.com/4236-lot-of-refresh-on-screen-fop/p1#p11939
http://forum.fop2.com/4192-queue-login-window-pops-up-every-so-often/p1#p11854