title: Bayeux server hangs on connect request
body: <p>this is bugging me for almost two days.</p>
  
  <p>I'm writing Bayeux client. I use <a href="http://www.eclipse.org/jetty/documentation/9.2.2.v20140723/jetty-websocket-client-api.html" rel="nofollow">WebSocket-client</a> library from Jetty and connecting to <a href="http://faye.jcoglan.com/" rel="nofollow">Faye</a> server.</p>
  
  <p>I open a WS connection to the server (everything localhost) with handshake request: </p>
  
  <pre><code>{"channel":"/meta/handshake","supportedConnectionTypes":["long-polling","callback-polling","websocket"],"version":"1.0"}
  </code></pre>
  
  <p>The client immediately receives a handshake response:</p>
  
  <pre><code>{"channel":"/meta/handshake","successful":true,"version":"1.0","supportedConnectionTypes":["long-polling","cross-origin-long-polling","callback-polling","websocket","eventsource","in-process"],"clientId":"l8xhgf0t5gikcukcknhr5npfx11s5w9","advice":{"reconnect":"retry","interval":0,"timeout":45000}}
  </code></pre>
  
  <p>Then client sends connect request:</p>
  
  <pre><code>{"clientId":"l8xhgf0t5gikcukcknhr5npfx11s5w9","connectionType":"websocket","channel":"/meta/connect"}
  </code></pre>
  
  <p>Then the server hangs for 45s (the value of time out) and then sends this response:</p>
  
  <pre><code>{"clientId":"l8xhgf0t5gikcukcknhr5npfx11s5w9","channel":"/meta/connect","successful":true,"advice":{"reconnect":"retry","interval":0,"timeout":45000}}
  </code></pre>
  
  <p>last log message on Faye server before it hangs: Ping "l8xhgf0t5gikcukcknhr5npfx11s5w9", 45</p>
  
  <p>But I never receive Ping frame on client side.
  I have no idea why the server hangs for those 45s, but I need to resolve this.
  Have anyone of you seen this before? Any help/suggestions/hints much appreciated :)</p>