diff options
Diffstat (limited to 'lib/_http_incoming.js')
-rw-r--r-- | lib/_http_incoming.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/_http_incoming.js b/lib/_http_incoming.js index 53a3a386fa..c089ec9e24 100644 --- a/lib/_http_incoming.js +++ b/lib/_http_incoming.js @@ -102,6 +102,9 @@ IncomingMessage.prototype._read = function(n) { }; +// It's possible that the socket will be destroyed, and removed from +// any messages, before ever calling this. In that case, just skip +// it, since something else is destroying this connection anyway. IncomingMessage.prototype.destroy = function(error) { if (this.socket) this.socket.destroy(error); |