1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-30 00:00:16 +01:00
libwebsockets/lib/roles/h2
Andy Green cbd58fa458 http: body: make sure to consume body before transaction complete
https://github.com/warmcat/libwebsockets/issues/1625

"dead bodies" that were sent but not processed by lws as server
will clog up and destroy transaction tracking if repeated POSTs
with keepalive are sent to nonexistant paths.

This patch introduces a DISCARD_BODY state that follows BODY
except the payload is not signalled to the protocol callback.
Calling transaction_completed() with pending body makes lws
enter DISCARD_BODY and retry transaction completed only after
the pending body is exhausted.
2019-07-05 07:31:38 +01:00
..
hpack.c ah: custom headers for h1 2019-03-10 08:02:02 +08:00
http2.c rtos: add support for AMAZON_RTOS 2019-06-05 05:04:17 +01:00
huftable.h refactor role ops 2018-04-11 13:39:42 +08:00
minihuf.c libwebsockets.h: clean out some boilerplate better put in core/private.h 2018-08-16 19:10:32 +08:00
ops-h2.c http: body: make sure to consume body before transaction complete 2019-07-05 07:31:38 +01:00
private.h clean: general whitespace cleanup 2018-11-23 08:47:56 +08:00