Browse Source

write-only streams should not shutdown

See
https://github.com/joyent/node/issues/1726#issuecomment-2207602
v0.7.4-release
Ryan Dahl 13 years ago
parent
commit
fa2eaeafda
  1. 2
      lib/net_uv.js

2
lib/net_uv.js

@ -195,7 +195,7 @@ Socket.prototype.end = function(data, encoding) {
if (data) this.write(data, encoding); if (data) this.write(data, encoding);
DTRACE_NET_STREAM_END(this); DTRACE_NET_STREAM_END(this);
if (this._flags & FLAG_GOT_EOF) { if (!this.readable) {
this.destroySoon(); this.destroySoon();
} else { } else {
this._flags |= FLAG_SHUTDOWN; this._flags |= FLAG_SHUTDOWN;

Loading…
Cancel
Save