Skip to content

Commit 2dff44f

Browse files
authored
Hangup value included in LWS retry strategy (#1403) (#1404)
1 parent 111c253 commit 2dff44f

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/source/Signaling/LwsApiCalls.h

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ extern "C" {
1919
#define SIGNALING_SERVICE_TCP_KEEPALIVE_PROBE_COUNT 3
2020
#define SIGNALING_SERVICE_TCP_KEEPALIVE_PROBE_INTERVAL_IN_SECONDS 1
2121
#define SIGNALING_SERVICE_WSS_PING_PONG_INTERVAL_IN_SECONDS 10
22+
#define SIGNALING_SERVICE_WSS_HANGUP_IN_SECONDS 7200
2223

2324
// Protocol indexes
2425
#define PROTOCOL_INDEX_HTTPS 0

src/source/Signaling/Signaling.c

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ STATUS createSignalingSync(PSignalingClientInfoInternal pClientInfo, PChannelInf
1515
struct lws_context_creation_info creationInfo;
1616
const lws_retry_bo_t retryPolicy = {
1717
.secs_since_valid_ping = SIGNALING_SERVICE_WSS_PING_PONG_INTERVAL_IN_SECONDS,
18+
.secs_since_valid_hangup = SIGNALING_SERVICE_WSS_HANGUP_IN_SECONDS,
1819
};
1920
PStateMachineState pStateMachineState;
2021
BOOL cacheFound = FALSE;

0 commit comments

Comments
 (0)