Skip to content

Commit

Permalink
adjust KVS_ICE_ENTER_STATE_DISCONNECTION_GRACE_PERIOD to two times ke…
Browse files Browse the repository at this point in the history
…ep alive period.
  • Loading branch information
chehefen committed May 6, 2020
1 parent d9262e2 commit f98abc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/source/Ice/IceAgent.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ extern "C" {
/* Control the calling rate of iceCandidateGatheringTimerTask. Can affect STUN TURN candidate gathering time */
#define KVS_ICE_GATHER_CANDIDATE_TIMER_POLLING_INTERVAL 50 * HUNDREDS_OF_NANOS_IN_A_MILLISECOND

/* Should see at least one keep alive within this period */
/* ICE should've received at least one keep alive within this period. Since keep alives are send every 15s */
#define KVS_ICE_ENTER_STATE_DISCONNECTION_GRACE_PERIOD 2 * KVS_ICE_SEND_KEEP_ALIVE_INTERVAL
#define KVS_ICE_ENTER_STATE_FAILED_GRACE_PERIOD 15 * HUNDREDS_OF_NANOS_IN_A_SECOND

Expand Down

0 comments on commit f98abc1

Please sign in to comment.