Skip to content

Commit

Permalink
fix the issue with TLS connection cache, when server doesn't recogniz…
Browse files Browse the repository at this point in the history
…e the cache, it will hang up the following request after the cached one.

refer to nodejs/node#8368
  • Loading branch information
codingfishman committed Sep 6, 2016
1 parent fa177f6 commit 4461628
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/requestHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ var http = require("http"),

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){
/*
note
Expand Down

0 comments on commit 4461628

Please sign in to comment.