mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-23 00:00:06 +01:00
![]() https://github.com/warmcat/libwebsockets/issues/1571 Although the code exists for non-tls h1 upgrade to h2, it hasn't been looked after since all expected uses for h2 are going to be via h2 / alpn. This patch aligns its upgrade actions with alpn upgrade path so it works OK via $ curl --http2 http://localhost:7681/ -v -w "\n" ie, without tls. Operation via tls is unaffected. To use the non-tls upgrade path, you have to be listening without tls, ie with the test server without -s. If you're listening in a way that requires tls, this can't be used to bypass that (or, eg, client certs) in itself, since you have to be able to talk to it in h1 in the first place to attempt the upgrade to h2. The common h2 path has some code to dropping the ah unconditionally it looks like after the first service... this is too aggressive since the first thing coming on the upgrade path is WINDOW_UPDATE. It looks wrong anyway, transaction / stream completion will drop the ah and should be enough. |
||
---|---|---|
.. | ||
hpack.c | ||
http2.c | ||
huftable.h | ||
minihuf.c | ||
ops-h2.c | ||
private.h |