async-http-client icon indicating copy to clipboard operation
async-http-client copied to clipboard

Implement WebSocket idle timeout

Open jfarcand opened this issue 12 years ago • 3 comments

Configuring the requestTimeout with the Netty's Provider doesn't work because the reaper's task gets cancelled once the handshake is successful. Once done, the websocket connection never times out.

jfarcand avatar Apr 16 '13 19:04 jfarcand

@jfarcand AsyncHttpClientConfig.getWebSocketTimeout was actually only used in the Grizzly provider, it was never implemented on the Netty side. How would it behave? I get the WebSocket should get closed when idle, but should this be reported to the listener?

slandelle avatar Oct 28 '15 10:10 slandelle

@slandelle should be reported with code

      1001 indicates that an endpoint is "going away", such as a server
      going down or a browser having navigated away from a page.

jfarcand avatar Oct 28 '15 21:10 jfarcand

@jfarcand thanks for the tip

slandelle avatar Oct 28 '15 21:10 slandelle