diff --git a/lib/handle.js b/lib/handle.js index da70b3f..6014c59 100644 --- a/lib/handle.js +++ b/lib/handle.js @@ -85,13 +85,13 @@ Handle.prototype._flow = function flow () { }) this._stream.on('end', function () { - self.onread(uv.UV_EOF, Buffer.alloc(0)) + self.onread(Buffer.alloc(0)) }) this._stream.on('close', function () { setImmediate(function () { if (self._reading) { - self.onread(uv.UV_ECONNRESET, Buffer.alloc(0)) + self.onread(Buffer.alloc(0)) } }) })