Skip to content

Commit

Permalink
[minor] Close open connections. Fixes socketio#178
Browse files Browse the repository at this point in the history
  • Loading branch information
3rd-Eden committed Jul 2, 2013
1 parent ee38824 commit 0cf8127
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/transports/polling.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,8 @@ Polling.prototype.onData = function (data) {
parser.decodePayload(data, function(packet){
if ('close' == packet.type) {
debug('got xhr close packet');
if (self.request) self.request.connection.destroy();
if (self.res) self.res.end();
self.onClose();
return false;
}
Expand Down

0 comments on commit 0cf8127

Please sign in to comment.