1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-30 00:00:16 +01:00
libwebsockets/lib/core-net
Andy Green bb0e7d986d rx flow: handle partial flow buffer consumption
https://github.com/warmcat/libwebsockets/issues/1550

rx flow control needs to handle the situation that it is draining from
a previous rx flow control period, and the user code reasserts rx flow
control partway through that.

The accounting for the used rx then boils down to only trimming the
rxflow buflist we were "replaying" to consume however much we managed
to deliver of that this time before the rx flow control came again.

"Normal" rx consumption is wrong in this case, since we accounted for
it entirely in the rxflow cache buflist.

The patch recognizes this situation, does the accounting in the cache
buflist, and then lies to the caller that there was no rx consumption
to be accounted for at his level.
2019-04-21 19:35:18 +01:00
..
adopt.c lws_dll: remove lws_dll_lws and deprecate lws_dll_remove 2019-03-21 06:19:31 +08:00
client.c ipv6: support [ipv6]:port in client proxy 2019-03-10 08:02:02 +08:00
close.c http proxy: support POST 2019-03-22 11:25:22 +08:00
connect.c LWS_WITH_NETWORK: cmake option for no network code 2019-01-13 07:54:57 +08:00
dummy-callback.c spa: add info args and stride 2019-04-06 07:34:36 +08:00
network.c unix skt: allow control over skt user:group 2019-03-26 14:54:49 +08:00
output.c nossl recv: always respond to 0 length read as shutdown 2019-03-21 10:24:58 +08:00
pollfd.c minimal-http-server-eventlib-smp 2019-03-21 10:26:42 +08:00
private.h rx flow: handle partial flow buffer consumption 2019-04-21 19:35:18 +01:00
server.c glibc: if malloc_trim() exists, call it periodically 2019-03-16 08:10:47 +08:00
service.c rx flow: handle partial flow buffer consumption 2019-04-21 19:35:18 +01:00
stats.c LWS_WITH_NETWORK: cmake option for no network code 2019-01-13 07:54:57 +08:00
vhost.c unix skt: allow control over skt user:group 2019-03-26 14:54:49 +08:00
wsi-timeout.c hrtimer: remove from correct dll before resetting 2019-03-21 13:41:36 +08:00
wsi.c rx flow: handle partial flow buffer consumption 2019-04-21 19:35:18 +01:00