kusma/rocket — pull request #4 by anttihirvonen (2014-05-12 15:13:36+00:00)
Title: Close socket properly when a client disconnects

Hi!

Rocket doesn't close socket properly when a client disconnects, which prevents any new connections to be established. This commit should fix the problem and let the client to reconnect :)

This bug doesn't seem to affect WebSocket connections, since a disconnection frame is sent by browser, which closes connection earlier (in `WebSocket.readFrame()`).