1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-23 00:00:06 +01:00
libwebsockets/lib/core-net
Andy Green 9cb4f25476 h2: LCCSCF_H2_MANUAL_RXFLOW and refactor txcr
This changes the approach of tx credit management to set the
initial stream tx credit window to zero.  This is the only way
with RFC7540 to gain the ability to selectively precisely rx
flow control incoming streams.

At the time the headers are sent, a WINDOW_UPDATE is sent with
the initial tx credit towards us for that specific stream.  By
default, this acts as before with a 256KB window added for both
the stream and the nwsi, and additional window management sent
as stuff is received.

It's now also possible to set a member in the client info
struct and a new option LCCSCF_H2_MANUAL_RXFLOW to precisely
manage both the initial tx credit for a specific stream and
the ongoing rate limit by meting out further tx credit
manually.

Add another minimal example http-client-h2-rxflow demonstrating how
to force a connection's peer's initial budget to transmit to us
and control it during the connection lifetime to restrict the amount
of incoming data we have to buffer.
2020-01-02 08:31:02 +00:00
..
adopt.c adopt: pass wsi opaque so its set from the start 2019-12-09 14:48:54 +00:00
client.c client: make external http proxying optional 2019-08-26 09:58:57 +01:00
close.c mux children: generalize helpers out of h2 implementation 2019-12-29 19:59:16 +00:00
connect.c h2: LCCSCF_H2_MANUAL_RXFLOW and refactor txcr 2020-01-02 08:31:02 +00:00
detailed-latency.c detailed latency stats 2019-09-22 03:06:59 -07:00
dummy-callback.c mux children: generalize helpers out of h2 implementation 2019-12-29 19:59:16 +00:00
lws-dsh.c Coverity fixes 2019-08-19 10:12:20 +01:00
network.c LWS_ERRNO: audit uses for case logging may destroy errno 2019-12-14 23:55:28 +00:00
output.c mux children: generalize helpers out of h2 implementation 2019-12-29 19:59:16 +00:00
pollfd.c mux children: generalize helpers out of h2 implementation 2019-12-29 19:59:16 +00:00
private-lib-core-net.h h2: LCCSCF_H2_MANUAL_RXFLOW and refactor txcr 2020-01-02 08:31:02 +00:00
sequencer.c private.h: rename to contain dir 2019-08-15 10:49:52 +01:00
server.c illumos: fix build errors 2019-11-04 13:49:13 +00:00
service.c lws_state and system state 2019-09-22 09:35:07 -07:00
sorted-usec-list.c unix: sul schedule rename internal api and call regardless of existing timeout 2019-11-01 07:07:33 +00:00
state.c fail paths: deregister notifier and be sure adopt returns NULL 2019-12-06 17:14:28 +00:00
stats.c private.h: rename to contain dir 2019-08-15 10:49:52 +01:00
vhost.c active_conns: move out dependency on ah 2019-12-23 09:25:56 +00:00
wsi-timeout.c mux children: generalize helpers out of h2 implementation 2019-12-29 19:59:16 +00:00
wsi.c h2: LCCSCF_H2_MANUAL_RXFLOW and refactor txcr 2020-01-02 08:31:02 +00:00