summaryrefslogtreecommitdiff
path: root/lib/_http_common.js
diff options
context:
space:
mode:
authorTimothy J Fontaine <tjfontaine@gmail.com>2013-04-11 16:00:19 -0700
committerBen Noordhuis <info@bnoordhuis.nl>2013-04-17 00:08:28 +0200
commit6717fdccb4a3ebf55d87ae5df1e24ebebd4081f1 (patch)
treec53e593b3c999773d09d00ee48f4af9ee2046719 /lib/_http_common.js
parentdc9f97b7b99f27eaf21faf29c7df8c9d823ef863 (diff)
downloadandroid-node-v8-6717fdccb4a3ebf55d87ae5df1e24ebebd4081f1.tar.gz
android-node-v8-6717fdccb4a3ebf55d87ae5df1e24ebebd4081f1.tar.bz2
android-node-v8-6717fdccb4a3ebf55d87ae5df1e24ebebd4081f1.zip
http: move Server and ServerResponse out
Diffstat (limited to 'lib/_http_common.js')
-rw-r--r--lib/_http_common.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/_http_common.js b/lib/_http_common.js
index 40a4b11840..8c97886272 100644
--- a/lib/_http_common.js
+++ b/lib/_http_common.js
@@ -220,3 +220,15 @@ function freeParser(parser, req) {
}
}
exports.freeParser = freeParser;
+
+
+function ondrain() {
+ if (this._httpMessage) this._httpMessage.emit('drain');
+}
+
+
+function httpSocketSetup(socket) {
+ socket.removeListener('drain', ondrain);
+ socket.on('drain', ondrain);
+}
+exports.httpSocketSetup = httpSocketSetup;