From f020d012f27ca8626fc6e175f1c8bf6a71d74ee2 Mon Sep 17 00:00:00 2001 From: Guillermo Rauch Date: Sun, 22 May 2011 14:28:41 -0700 Subject: [PATCH] Make sure the socket is considered drained when re-set, specially if a socket is closed before its drain event fires. --- lib/transport.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/transport.js b/lib/transport.js index ff46e47a..233c7c9d 100644 --- a/lib/transport.js +++ b/lib/transport.js @@ -72,6 +72,7 @@ Transport.prototype.handleRequest = function (req) { if (req.method == 'GET') { this.socket = req.socket; this.open = true; + this.drained = true; var self = this;