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