Hi all, I have a 2.1.10 installed on ubuntu 12.04 with both mod_ping and mod_http_bind enabled.
I need to use mod_ping because I want to mark as offline all clients that doesn't reply for a while, so I set the following:
{mod_ping, [{send_pings, true}, {ping_interval, 10}, {timeout_action, kill}]},
Everything works correctly with pidgin, if I cut the client network connection I see that server sets the client offline after 10+32 seconds (I know that 32 is the ping reply timeout).
If instead I use ConverseJS I get disconnected after exactly 42 seconds of inactivity, even if client is open and correctly connected. If I disable mod_ping (e.g. by settings send_pings to false) then ConverseJS works correctly and never gets disconnected as far as it is open.
I tried both using apache2 as proxy for http_bind and direct connection through port 5280. I also tried to disable ssl (e.g. using http instead of https), same result.
I think that mod_ping and mod_http_bind are not communicating correctly, is there anyone with the same issue?
King regards
Yes what you are experiencing
Yes what you are experiencing is correct. We to are using mod ping with an http proxy. What we did on the client side is listen for the ping and what we do is in the function save the current time stamp and set received to 1. We then have another function that fires every 30 seconds and looks to make sure the current time and the last received ping are within tolerance; if not it would react accordingly.