[Libwebsockets] Missing LWS_CALLBACK_HTTP_BODY_COMPLETION when using H2 https

Søren Holm sgh at sgh.dk
Wed Nov 17 11:45:06 CET 2021


I get no LWS_CALLBACK_HTTP_BODY_COMPLETION on posts over https - I do however 
get that callback if I disable the ssl key and cert. Thereby running the 
server in http mode.

I use commandline curl for the post.

The difference as I can see is that curl somehow end up using HTTP2 on https, 
but HTTP1.1 on regular http. Forcing curl to use HTTP1.1 on the https brings 
the callback back.

So, is something fweird going on on H2?
Can I disable H2 completely without recompiling libwebsocket?

Søren Holm

More information about the Libwebsockets mailing list