fix the issue with TLS connection cache, when server doesn't recognize the cache, it will hang up the following request after the cached one.

refer to https://github.com/nodejs/node/issues/8368
This commit is contained in:
砚然 2016-09-06 10:23:09 +08:00
parent fa177f645a
commit 4461628e1b

View File

@ -16,6 +16,9 @@ var http = require("http"),
var userRule = util.freshRequire('./rule_default'); var userRule = util.freshRequire('./rule_default');
// to fix issue with TLS cache, refer to: https://github.com/nodejs/node/issues/8368
https.globalAgent.maxCachedSessions = 0;
function userRequestHandler(req,userRes){ function userRequestHandler(req,userRes){
/* /*
note note