Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
write-only streams should not shutdown
  • Loading branch information
ry committed Sep 27, 2011
1 parent 040cf02 commit fa2eaea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/net_uv.js
Expand Up @@ -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;
Expand Down

0 comments on commit fa2eaea

Please sign in to comment.