--
You received this message because you are subscribed to a topic in the Google Groups "vert.x" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vertx/l-q3dZLMHLs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vertx+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
We are talking about Websockets. Does the idle timeout property apply to websocket connections? I.e if no messages are sent/received for the specified time, the connection is closed, but any messages sent/received reset the timer? That would be really fantastic, if so!
I will write a unit test to confirm. Should sending / receiving messages reset the timer, in theory?
If browsers send ping packets though, that probably defeats the purpose.. and would require that a custom connection pool be written anyway. Right?
Well, what you would want is to only keep the websocket connections active while the user is interacting with the page. If the user opens the page, and then keeps the tab for hours while he's doing other things, then that connection should be closed so it doesn't take up server resources.
So ideally, only real packets being sent / received should count as activity, and not ping packets, for websockets .