[Libwebsockets] Integer truncation in automatic setting of max_http_header_pool

Brice Hamon brice at ydotm.com
Wed Jun 20 16:06:00 CEST 2018


Got it. Thank you for the clarification. I'll look into it on my side.

The external epoll management is working flawlessly.

Thanks again Andy,
Brice.


On Wed, Jun 20, 2018 at 1:03 AM, Andy Green <andy at warmcat.com> wrote:

>
>
> On 06/20/2018 02:03 AM, Brice Hamon wrote:
>
>> Hi Andy,
>>
>> I just have 2 quick questions.
>>
>> I finally used the client side of libwebsocket, with external epoll
>> support. So far I had the server side working with great success.
>> I can connect successfully and all the FD events are managed correctly.
>>
>> Now my questions:
>>
>> 1) I am getting notified in the callback with LWS_CALLBACK_GET_THREAD_ID
>> every 30 seconds. I return the my thread id but it keeps asking for it. Is
>> this a normal condition?
>>
>
> Presumably you are doing something that changes a pollfd every 30s, lws
> has to figure out if you are doing it from another thread.  So it does the
> callback from the current thread, and compares it to the thread id it
> sampled from the first service.
>
> If they are not the same, lws cancels the service wait so your change to
> what is being waited on will take effect.
>
> -Andy
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://libwebsockets.org/pipermail/libwebsockets/attachments/20180620/f5adf8f5/attachment-0002.html>


More information about the Libwebsockets mailing list