diff options
author | Timothy J Fontaine <tjfontaine@gmail.com> | 2015-03-24 13:32:39 -0700 |
---|---|---|
committer | Timothy J Fontaine <tjfontaine@gmail.com> | 2015-03-24 14:09:17 -0700 |
commit | c20d02865280be65166f19ee02151f020d1e95a7 (patch) | |
tree | 3b8979fc86a6ee49a293d18473d14fa5dc6de7ef | |
parent | ea56a3690eb436aeaa6254c6850a074a3dde44e7 (diff) | |
download | node-strictee.tar.gz |
http: sockets close transitions via _socketClosestrictee
-rw-r--r-- | lib/_http_server.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/_http_server.js b/lib/_http_server.js index 7ca307ca2..926f3abfc 100644 --- a/lib/_http_server.js +++ b/lib/_http_server.js @@ -152,7 +152,10 @@ function onServerResponseClose() { // Ergo, we need to deal with stale 'close' events and handle the case // where the ServerResponse object has already been deconstructed. // Fortunately, that requires only a single if check. :-) - if (this._httpMessage) this._httpMessage.emit('close'); + if (this._httpMessage) { + this._httpMessage.emit('_socketClose'); + this._httpMessage.emit('close'); + } } ServerResponse.prototype.assignSocket = function(socket) { |