mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
h2: plat: fix plat SETTINGS override
The FREERTOS plat has its own h2 SETTINGS, but although they are used, they get overridden with the lws default SETTINGS during pt init. Let's not do that if someone else has already touched the context set.
This commit is contained in:
parent
5de5ee74bf
commit
1348632d14
1 changed files with 3 additions and 1 deletions
|
@ -578,7 +578,9 @@ rops_pt_init_destroy_h2(struct lws_context *context,
|
|||
const struct lws_context_creation_info *info,
|
||||
struct lws_context_per_thread *pt, int destroy)
|
||||
{
|
||||
context->set = lws_h2_stock_settings;
|
||||
/* if not already set by plat, use lws default SETTINGS */
|
||||
if (!context->set.s[0])
|
||||
context->set = lws_h2_stock_settings;
|
||||
|
||||
/*
|
||||
* We only want to do this once... we will do it if we are built
|
||||
|
|
Loading…
Add table
Reference in a new issue