mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
context: allow override validity timing
This commit is contained in:
parent
092ebf9879
commit
aea978240a
1 changed files with 8 additions and 0 deletions
|
@ -471,6 +471,14 @@ lws_create_context(const struct lws_context_creation_info *info)
|
|||
context->default_retry.secs_since_valid_ping = 300;
|
||||
context->default_retry.secs_since_valid_hangup = 310;
|
||||
|
||||
if (info->retry_and_idle_policy &&
|
||||
info->retry_and_idle_policy->secs_since_valid_ping) {
|
||||
context->default_retry.secs_since_valid_ping =
|
||||
info->retry_and_idle_policy->secs_since_valid_ping;
|
||||
context->default_retry.secs_since_valid_hangup =
|
||||
info->retry_and_idle_policy->secs_since_valid_hangup;
|
||||
}
|
||||
|
||||
/*
|
||||
* Allocate the per-thread storage for scratchpad buffers,
|
||||
* and header data pool
|
||||
|
|
Loading…
Add table
Reference in a new issue