mirror of
https://github.com/nodejs/node-v0.x-archive.git
synced 2026-01-09 15:08:06 -05:00
http: sockets close transitions via _socketClose
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user