Skip to content

Commit

Permalink
Change _pingedThreshold to 2.5 times of headbeat
Browse files Browse the repository at this point in the history
Change _pingedThreshold to 2.5 times the configured heartbeat (set in this.options.heartBeat)
  • Loading branch information
cmdkoh authored Feb 4, 2017
1 parent 710f68c commit e0f7a54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/protocol/endpoint.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module.exports = function(dependencies) {
this._acquiredStreamSlots = 0;
this._maximumStreamSlots = 0;
this._lastSuccessPingedTime = null;
this._pingedThreshold = (this.options.heartBeat || 60000) * 2;
this._pingedThreshold = (this.options.heartBeat || 60000) * 2.5;
this._heartBeatInterval = (this.options.heartBeat || 60000);

options.ALPNProtocols = ["h2"];
Expand Down

0 comments on commit e0f7a54

Please sign in to comment.