[Libwebsockets] problems with big dynamic content
andy at warmcat.com
Sat Jun 23 00:48:06 CEST 2018
On 06/23/2018 06:43 AM, Per Bothner wrote:
> On 06/22/2018 03:33 PM, Andy Green wrote:
>>> Any suggestions for detecting and working around older versions?
>>> I tried, based on a comment in libwebsockets.h:
>>> #if LWS_LIBRARY_VERSION_NUMBER <= 2004002
>>> info.ka_time = 0;
>>> However, that doesn't seem to make any difference, since the default
>>> is 0
>>> anyway, as far as I can tell.
>> info.ka_time is related to tcp keepalive.
>> You want info.keepalive_timeout to control http keep-alive idle wait.
> I don't see any way to disable that, since info->keepalive_timeout == 0
> is the same as info->keepalive_timeout == 5.
> And keepalive_timeout is private in vhost.
> The only thing I can think of is setting --enable-compiled-in-resources
> and then LWS_ILLEGAL_HTTP_CONTENT_LEN. That's a hassle since it would
> require configure-time hacks to detect old lws.
Just set it to something large, like 5 * 365 * 3600 (5 years)?
More information about the Libwebsockets