Closer to a working pipe
This commit is contained in:
parent
007881b648
commit
2944e03a03
@ -196,6 +196,8 @@ function IncomingMessage (socket) {
|
|||||||
this.headers = {};
|
this.headers = {};
|
||||||
this.trailers = {};
|
this.trailers = {};
|
||||||
|
|
||||||
|
this.readable = true;
|
||||||
|
|
||||||
// request (server) only
|
// request (server) only
|
||||||
this.url = "";
|
this.url = "";
|
||||||
|
|
||||||
@ -291,6 +293,8 @@ function OutgoingMessage (socket) {
|
|||||||
this.output = [];
|
this.output = [];
|
||||||
this.outputEncodings = [];
|
this.outputEncodings = [];
|
||||||
|
|
||||||
|
this.writable = true;
|
||||||
|
|
||||||
this._last = false;
|
this._last = false;
|
||||||
this.chunkedEncoding = false;
|
this.chunkedEncoding = false;
|
||||||
this.shouldKeepAlive = true;
|
this.shouldKeepAlive = true;
|
||||||
|
@ -100,11 +100,6 @@ function startClient () {
|
|||||||
gotThanks = true;
|
gotThanks = true;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
client.on('error', function (e) {
|
|
||||||
console.log("http client-side error: " + e.message);
|
|
||||||
process.exit(2);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
process.on('exit', function () {
|
process.on('exit', function () {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user