[Libwebsockets] Maximun size of URL

Renan Le Padellec renan at beezeelinx.com
Fri Sep 15 10:13:07 CEST 2017


Hi Andy,

On 15/09/2017 09:20, Andy Green wrote:
>
>
> On 09/15/2017 03:04 PM, Renan Le Padellec wrote:
>> Hi,
>>
>> With the latest version, what is the limitation of the size of the 
>> URL? It seems that the library is not able to handle an URL with a 
>> quite long query string (~2K).
>
> It is configurable at context creation time
>
>     short max_http_header_data;
>     /**< CONTEXT: The max amount of header payload that can be handled
>      * in an http request (unrecognized header payload is dropped) */
>
> If you leave it at zero, it uses the default of 4096... that is for 
> all the recognized header content.
>
Increasing the default value to 8192 does not fix my issue.

However, modifying the hard-coded size of the allocated_headers rx 
buffer from 2048 to 4096 does solve my issue.

Should this rx buffer be based on the max_http_header_data value ?

Thanks a lot for your help,
Renan

> -Andy
>
>
>> Regards,
>>
>> Renan
>>
>> _______________________________________________
>> Libwebsockets mailing list
>> Libwebsockets at ml.libwebsockets.org
>> https://libwebsockets.org/mailman/listinfo/libwebsockets

-- 
Renan Le Padellec
renan at beezeelinx.com
Cell: +33 (0) 6 80 30 58 99




More information about the Libwebsockets mailing list