conn.resume() to fix close-or-hangup bug
This commit is contained in:
parent
d3a6ef96d6
commit
539fb4e62a
|
@ -45,7 +45,7 @@ module.exports.create = function (state) {
|
|||
|
||||
// Probably something that needs to be redirected to https
|
||||
function redirectHttpsAndClose(req, res) {
|
||||
res.setHeader('Connection', 'close');
|
||||
//res.setHeader('Connection', 'close');
|
||||
redirectHttps(req, res);
|
||||
}
|
||||
state.httpInsecureServer = http.createServer(
|
||||
|
|
|
@ -72,6 +72,7 @@ module.exports.createTcpConnectionHandler = function (copts) {
|
|||
// defer after return (instead of being in many places)
|
||||
process.nextTick(function () {
|
||||
conn.unshift(firstChunk);
|
||||
conn.resume();
|
||||
});
|
||||
|
||||
var service = 'tcp';
|
||||
|
|
Loading…
Reference in New Issue