projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
901ebed
)
Fixes #1085. The agent end event may call detachSocket() after the socket is detached...
author
Stefan Rusu
<saltwaterc@gmail.com>
Thu, 14 Jul 2011 12:33:04 +0000
(15:33 +0300)
committer
koichik
<koichik@improvement.jp>
Thu, 14 Jul 2011 15:33:28 +0000
(
00:33
+0900)
lib/http.js
patch
|
blob
|
history
diff --git
a/lib/http.js
b/lib/http.js
index 3bb24cbef77fed64d48327a42654699f3fed6557..14befd15dfe79de12d937f0f3ece4dfc1e9374cf 100644
(file)
--- a/
lib/http.js
+++ b/
lib/http.js
@@
-1333,7
+1333,10
@@
Agent.prototype._establishNewConnection = function() {
debug('AGENT socket keep-alive');
}
- req.detachSocket(socket);
+ // The socket may already be detached and destroyed by an abort call
+ if (socket._httpMessage) {
+ req.detachSocket(socket);
+ }
assert(!socket._httpMessage);