Skip to content

Commit fc58ddb

Browse files
lorenzo-arena-pwslws-team
authored andcommitted
minimal-examples-lowlevel: fix misleading comment for the conceal value
1 parent 237506f commit fc58ddb

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

minimal-examples-lowlevel/ws-client/minimal-ws-client-binance/main.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -312,9 +312,9 @@ callback_minimal(struct lws *wsi, enum lws_callback_reasons reason,
312312
* For this example, we try to conceal any problem for one set of
313313
* backoff retries and then exit the app.
314314
*
315-
* If you set retry.conceal_count to be larger than the number of
316-
* elements in the backoff table, it will never give up and keep
317-
* retrying at the last backoff delay plus the random jitter amount.
315+
* If you set retry.conceal_count to be LWS_RETRY_CONCEAL_ALWAYS,
316+
* it will never give up and keep retrying at the last backoff
317+
* delay plus the random jitter amount.
318318
*/
319319
if (lws_retry_sul_schedule_retry_wsi(wsi, &mco->sul, connect_client,
320320
&mco->retry_count)) {

minimal-examples-lowlevel/ws-client/minimal-ws-client/minimal-ws-client.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,9 @@ callback_minimal(struct lws *wsi, enum lws_callback_reasons reason,
123123
* For this example, we try to conceal any problem for one set of
124124
* backoff retries and then exit the app.
125125
*
126-
* If you set retry.conceal_count to be larger than the number of
127-
* elements in the backoff table, it will never give up and keep
128-
* retrying at the last backoff delay plus the random jitter amount.
126+
* If you set retry.conceal_count to be LWS_RETRY_CONCEAL_ALWAYS,
127+
* it will never give up and keep retrying at the last backoff
128+
* delay plus the random jitter amount.
129129
*/
130130
if (lws_retry_sul_schedule_retry_wsi(wsi, &m->sul, connect_client,
131131
&m->retry_count)) {

0 commit comments

Comments
 (0)