1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-23 00:00:06 +01:00
libwebsockets/lib/roles/http/server
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
..
access-log.c http: log ws upgrades 2019-03-10 08:02:02 +08:00
fops-zip.c cmake: miniz: add as option 2019-07-03 19:46:23 +01:00
lejp-conf.c http: Initialize local variable 2019-05-30 06:06:41 +08:00
lws-spa.c spa: add info args and stride 2019-04-06 07:34:36 +08:00
parsers.c rtos: clean warnings where uint32_t is an unsigned long 2019-06-07 11:11:46 +01:00
ranges.c codacy: minor fixes 2018-10-13 08:16:27 +08:00
rewrite.c clean: general whitespace cleanup 2018-11-23 08:47:56 +08:00
server.c http: body: make sure to consume body before transaction complete 2019-07-05 07:31:38 +01:00