[Libwebsockets] How to drop sessions which don't request nothing
Alexandre Erwin Ittner
alexandre at ittner.com.br
Mon Feb 17 18:24:17 CET 2014
On Sat, Feb 15, 2014 at 4:38 AM, "Andy Green (林安廸)" <andy at warmcat.com> wrote:
> On 30/01/14 11:58, the mail apparently from Alexandre Erwin Ittner included:
>> I also tried using the function libwebsocket_set_timeout -- setting a
>> timeout to 10s in LWS_CALLBACK_FILTER_NETWORK_CONNECTION and setting it
>> back to zero in LWS_CALLBACK_FILTER_PROTOCOL_CONNECTION, but I think I
>> misunderstood the mechanism -- it only resulted in a segfault with a
>> possible stack corruption which prevents GDB from getting to the failure
>> point inside libwebsocket_service_fd().
> I think the issue is you put the timeout on the listing wsi not the accepted
> one ^^
> I implemented this timeout here
> please give it a go.
Nice! Timeout handling is enable by default now! I'll try it.
Alexandre Erwin Ittner - alexandre at ittner.com.br
OpenPGP pubkey 0x0041A1FB @ http://pgp.mit.edu
More information about the Libwebsockets