Make sure the file descriptor is destroyed on disconnection Fix for websocket client tracking test
Make sure to close client/server in heartbeat test
…e socket through req.connection for all transports) Started on multipart tests
Add 'end' listener onConnect, applies to all transports Improved error handling onConnect Remove legacy `flush` calls Removed unnecessary closeTimeout clearing in jsonp polling
… request and a response. Removed error checking for non-upgradeable sockets, since they'll be destroyed, and error handling is done onConnect Added tests for websocket client tracking Added tests for websocket message buffering Make sure disconnect timeout is cleared on websocket re-connect
This is needed because when a error occures we close down the connection, and the stream will become unwriteable. Also changed to a single write instead of multiple writes.