diff --git a/lib/http.js b/lib/http.js index fd7e9b68f8..ecf67749c3 100755 --- a/lib/http.js +++ b/lib/http.js @@ -196,6 +196,8 @@ function IncomingMessage (socket) { this.headers = {}; this.trailers = {}; + this.readable = true; + // request (server) only this.url = ""; @@ -291,6 +293,8 @@ function OutgoingMessage (socket) { this.output = []; this.outputEncodings = []; + this.writable = true; + this._last = false; this.chunkedEncoding = false; this.shouldKeepAlive = true; diff --git a/test/disabled/pipe-test.js b/test/disabled/pipe-test.js index f82d37b0fa..9cff640333 100644 --- a/test/disabled/pipe-test.js +++ b/test/disabled/pipe-test.js @@ -100,11 +100,6 @@ function startClient () { gotThanks = true; }); }); - - client.on('error', function (e) { - console.log("http client-side error: " + e.message); - process.exit(2); - }); } process.on('exit', function () {