|
@ -1282,7 +1282,7 @@ function socketCloseListener() { |
|
|
if (req.res && req.res.readable) { |
|
|
if (req.res && req.res.readable) { |
|
|
// Socket closed before we emitted "end" below.
|
|
|
// Socket closed before we emitted "end" below.
|
|
|
req.res.emit('aborted'); |
|
|
req.res.emit('aborted'); |
|
|
req.res.emit('end'); |
|
|
req.res._emitEnd(); |
|
|
req.res.emit('close'); |
|
|
req.res.emit('close'); |
|
|
} else if (!req.res && !req._hadError) { |
|
|
} else if (!req.res && !req._hadError) { |
|
|
// This socket error fired before we started to
|
|
|
// This socket error fired before we started to
|
|
|