diff --git a/lib/http.js b/lib/http.js index a98a3104cde..42d72bcb1cf 100644 --- a/lib/http.js +++ b/lib/http.js @@ -1284,7 +1284,6 @@ function socketCloseListener() { var parser = socket.parser; var req = socket._httpMessage; debug('HTTP socket close'); - var req = socket._httpMessage; req.emit('close'); if (req.res && req.res.readable) { // Socket closed before we emitted 'end' below.