Skip to content

Commit

Permalink
Hangup value included in LWS retry strategy (#1403) (#1404)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdelapla authored Feb 21, 2022
1 parent 111c253 commit 2dff44f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/source/Signaling/LwsApiCalls.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ extern "C" {
#define SIGNALING_SERVICE_TCP_KEEPALIVE_PROBE_COUNT 3
#define SIGNALING_SERVICE_TCP_KEEPALIVE_PROBE_INTERVAL_IN_SECONDS 1
#define SIGNALING_SERVICE_WSS_PING_PONG_INTERVAL_IN_SECONDS 10
#define SIGNALING_SERVICE_WSS_HANGUP_IN_SECONDS 7200

// Protocol indexes
#define PROTOCOL_INDEX_HTTPS 0
Expand Down
1 change: 1 addition & 0 deletions src/source/Signaling/Signaling.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ STATUS createSignalingSync(PSignalingClientInfoInternal pClientInfo, PChannelInf
struct lws_context_creation_info creationInfo;
const lws_retry_bo_t retryPolicy = {
.secs_since_valid_ping = SIGNALING_SERVICE_WSS_PING_PONG_INTERVAL_IN_SECONDS,
.secs_since_valid_hangup = SIGNALING_SERVICE_WSS_HANGUP_IN_SECONDS,
};
PStateMachineState pStateMachineState;
BOOL cacheFound = FALSE;
Expand Down

0 comments on commit 2dff44f

Please sign in to comment.