1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-23 00:00:06 +01:00
libwebsockets/lib/tls
Andy Green e5b191be35 h2: post buflist: track rx_content_length
On h2 server POST, there's a race to see if the POST body is going to be
received coalesced with the headers.

The problem is on h2, we can't action the stream http request or body until
the stream is writeable, since we may start issuing the response right away;
there's already DEFERRING_ACTION state to manage this.  And indeed, the
coalesced, not-immediately-actionable POST body is buflisted properly.

However when we come to action the POST using buflisted data, we don't follow
the same pattern as dealing with the incoming data immediately.

This patch aligns the pattern dumping the buflist content to track
expected rx_content_length and handle BODY_COMPLETION if we got to
the end of it, along with removal from the pt list of wsi with pending
buflists if we used it up.
2021-01-18 19:49:02 +00:00
..
mbedtls h2: post buflist: track rx_content_length 2021-01-18 19:49:02 +00:00
openssl clean: reduce logging and add some conditional debug helpers 2021-01-05 10:56:38 +00:00
CMakeLists.txt netbsdBE: enable ctest and fix test cert generation 2021-01-05 10:56:38 +00:00
lws-gencrypto-common.c jws: lws_gencrypto_jws_alg_to_definition needs sentinel 2020-03-21 14:43:53 +00:00
lws-genec-common.c type comparisons: fixes 2021-01-05 10:56:38 +00:00
private-lib-tls.h cmake: disable export visibility when building lws static 2020-09-06 11:46:25 +01:00
private-network.h type comparisons: fixes 2021-01-05 10:56:38 +00:00
tls-client.c type comparisons: fixes 2021-01-05 10:56:38 +00:00
tls-network.c type comparisons: fixes 2021-01-05 10:56:38 +00:00
tls-server.c type comparisons: fixes 2021-01-05 10:56:38 +00:00
tls.c type comparisons: fixes 2021-01-05 10:56:38 +00:00