Query to a remote server via the websocket client hangs indefinitely if the server becomes unavailable.
Consider the code snippet below.
call succeeds (that is the server is available/reachable) but before getting the results from the server, the server becomes unavailable/unreachable, then the client code hangs indefinitely at
The right behavior would be to throw an exception indicating the server is not available anymore. The hanging behavior suggests that the channelInactive call from websocket connection may not be getting propagated properly (perhaps getting swallowed somewhere).