File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -515,7 +515,7 @@ Connection.prototype.output = function () {
515
515
this . heartbeat_out = setTimeout ( this . _write_frame . bind ( this ) , this . remote . open . idle_time_out / 2 ) ;
516
516
}
517
517
if ( this . local . open . idle_time_out && this . heartbeat_in === undefined ) {
518
- this . heartbeat_in = setTimeout ( this . idle . bind ( this ) , this . local . open . idle_time_out ) ;
518
+ this . heartbeat_in = setTimeout ( this . idle . bind ( this ) , this . local . open . idle_time_out * 2 ) ;
519
519
}
520
520
}
521
521
} catch ( e ) {
@@ -577,7 +577,7 @@ Connection.prototype.input = function (buff) {
577
577
this . previous_input = previous_input ;
578
578
}
579
579
}
580
- if ( this . local . open . idle_time_out ) this . heartbeat_in = setTimeout ( this . idle . bind ( this ) , this . local . open . idle_time_out ) ;
580
+ if ( this . local . open . idle_time_out ) this . heartbeat_in = setTimeout ( this . idle . bind ( this ) , this . local . open . idle_time_out * 2 ) ;
581
581
if ( this . transport . has_writes_pending ( ) ) {
582
582
this . output ( ) ;
583
583
} else if ( this . is_closed ( ) && this . state . has_settled ( ) ) {
You can’t perform that action at this time.
0 commit comments