Skip to content
Browse files

fix for missing socket and connection properties of respose object

  • Loading branch information...
1 parent bfa9db9 commit b4ab3de2526ffcd5b5100a4b793e7bf6870810ef @neocoder committed Apr 5, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/http.js
View
5 lib/http.js
@@ -1071,10 +1071,11 @@ function connectionListener(socket) {
if (socket._httpMessage) {
// There are already pending outgoing res, append.
outgoing.push(res);
- } else {
- res.assignSocket(socket);
}
+ res.assignSocket(socket);
+
+
// When we're finished writing the response, check if this is the last
// respose, if so destroy the socket.
res.on('finish', function() {

0 comments on commit b4ab3de

Please sign in to comment.
Something went wrong with that request. Please try again.