| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 47dfe29 commit f54659c
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -496,18 +496,10 @@ Socket.prototype._read = function(n) { | |||
| 496 | 496 | }; | |
| 497 | 497 | ||
| 498 | 498 | ||
| 499 | - Socket.prototype.end = function(data, encoding) { | ||
| 500 | - stream.Duplex.prototype.end.call(this, data, encoding); | ||
| 501 | - this.writable = false; | ||
| 499 | + Socket.prototype.end = function(data, encoding, callback) { | ||
| 500 | + stream.Duplex.prototype.end.call(this, data, encoding, callback); | ||
| 502 | 501 | DTRACE_NET_STREAM_END(this); | |
| 503 | 502 | LTTNG_NET_STREAM_END(this); | |
| 504 | - | ||
| 505 | - // just in case we're waiting for an EOF. | ||
| 506 | - if (this.readable && !this._readableState.endEmitted) | ||
| 507 | - this.read(0); | ||
| 508 | - else | ||
| 509 | - maybeDestroy(this); | ||
| 510 | - | ||
| 511 | 503 | return this; | |
| 512 | 504 | }; | |
| 513 | 505 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments