From 2944e03a030022e1420634b87e3a44e775184425 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Mon, 11 Oct 2010 01:22:38 -0700 Subject: [PATCH] Closer to a working pipe --- lib/http.js | 4 ++++ test/disabled/pipe-test.js | 5 ----- 2 files changed, 4 insertions(+), 5 deletions(-) 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 () {