1
1

conn.resume() to fix close-or-hangup bug

Este cometimento está contido em:
AJ ONeal 2018-05-26 08:52:38 +00:00
ascendente d3a6ef96d6
cometimento 539fb4e62a
2 ficheiros modificados com 2 adições e 1 eliminações

Ver ficheiro

@ -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(

Ver ficheiro

@ -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';