Created
September 27, 2011 06:10
-
-
Save ry/1244448 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/net_uv.js b/lib/net_uv.js | |
index 0fcdce9..207a1f4 100644 | |
--- a/lib/net_uv.js | |
+++ b/lib/net_uv.js | |
@@ -195,7 +195,7 @@ Socket.prototype.end = function(data, encoding) { | |
if (data) this.write(data, encoding); | |
DTRACE_NET_STREAM_END(this); | |
- if (this._flags & FLAG_GOT_EOF) { | |
+ if (!this.readable) { | |
this.destroySoon(); | |
} else { | |
this._flags |= FLAG_SHUTDOWN; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
committed nodejs/node-v0.x-archive@fa2eaea