title: Websocket blocking incoming request from server
body: <p><strong>Configuration</strong></p>
  
  <p>I have a java client connected to a server using websockets. I'm using netty framework as the websocket implementation. The server sends a ping to the client and the client responds with a pong frame, failure to do so will result in the server closing the connection.</p>
  
  <p><strong>Scenario</strong></p>
  
  <p>My client sends multiple request to the server and expects a response in return.  Now if the response of the first request is large, then the subsequent responses and ping are blocked until the client completely downloads the first request. Since the ping is also blocked, the server assumes the connection is broken and forces a close on the socket and client has to then reconnect and again send the 2 requests since the response was not complete last time. </p>
  
  <p><strong>Question</strong></p>
  
  <p>Is there a way to make the websocket behave in a non-blocking way so that other responses/ping can be handled?</p>