1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-23 00:00:06 +01:00
libwebsockets/lib/tls/mbedtls
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
..
wrapper mbedtls: change cert load semantics to append 2021-01-13 20:05:59 +00:00
CMakeLists.txt windows: for data exports use explicit extern 2020-06-07 07:53:36 +01:00
lws-genaes.c type comparisons: fixes 2021-01-05 10:56:38 +00:00
lws-gencrypto.c type comparisons: fixes 2021-01-05 10:56:38 +00:00
lws-genec.c type comparisons: fixes 2021-01-05 10:56:38 +00:00
lws-genhash.c type comparisons: fixes 2021-01-05 10:56:38 +00:00
lws-genrsa.c type comparisons: fixes 2021-01-05 10:56:38 +00:00
mbedtls-client.c clean: reduce logging and add some conditional debug helpers 2021-01-05 10:56:38 +00:00
mbedtls-server.c h2: post buflist: track rx_content_length 2021-01-18 19:49:02 +00:00
mbedtls-ssl.c type comparisons: fixes 2021-01-05 10:56:38 +00:00
mbedtls-tls.c private.h: rename to contain dir 2019-08-15 10:49:52 +01:00
mbedtls-x509.c type comparisons: fixes 2021-01-05 10:56:38 +00:00
private-lib-tls-mbedtls.h esp32: shift to support latest esp-idf 2020-05-27 08:40:12 +01:00