Skip to content

Commit

Permalink
Ensure that polling transports work with Connection: close
Browse files Browse the repository at this point in the history
  • Loading branch information
rauchg committed Apr 5, 2012
1 parent d7b06ed commit 2075307
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/transports/http-polling.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,18 @@ HTTPPolling.prototype.__proto__ = HTTPTransport.prototype;

HTTPPolling.prototype.name = 'httppolling';

/**
* Override setHandlers
*
* @api private
*/

HTTPPolling.prototype.setHandlers = function () {
HTTPTransport.prototype.setHandlers.call(this);
this.socket.removeListener('end', this.bound.end);
this.socket.removeListener('close', this.bound.close);
};

/**
* Removes heartbeat timeouts for polling.
*/
Expand Down

0 comments on commit 2075307

Please sign in to comment.