1
0
Fork 0
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:
Gopi Rao 2021-08-17 10:36:37 +01:00 committed by Andy Green
parent 5de5ee74bf
commit 1348632d14

View file

@ -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