mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
write-only streams should not shutdown
See https://github.com/joyent/node/issues/1726#issuecomment-2207602
This commit is contained in:
parent
040cf02724
commit
fa2eaeafda
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user