detect when http client request is finished and close connection

If the request is finished before we need to respond, we set a flag and
close the connection.

We also close the connection when the request finishes anyway because we
really like a new connection for each request. Things play nicer with
bouncy that way.
This commit is contained in:
Roman Shtylman
2014-04-22 20:34:13 -04:00
parent 7fedb06bf9
commit 1b1d75b750
2 changed files with 19 additions and 1 deletions

View File

@@ -27,7 +27,8 @@
"superstack": "0.0.4",
"stylish": "0.4.1",
"makeover": "0.0.1",
"tldjs": "1.3.1"
"tldjs": "1.3.1",
"finished": "1.1.2"
},
"devDependencies": {
"mocha": "1.18.2",