1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-23 00:00:06 +01:00
libwebsockets/lib/roles/ws
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
..
ext cmake: miniz: add as option 2019-07-03 19:46:23 +01:00
client-parser-ws.c coverity: fixes 2019-06-08 10:29:08 +01:00
client-ws.c pmd: split ebufs to track in and out 2019-05-06 07:31:32 +01:00
ops-ws.c http: body: make sure to consume body before transaction complete 2019-07-05 07:31:38 +01:00
private.h Change some struct members to unsigned char 2019-05-30 08:21:33 +08:00
server-ws.c Change some struct members to unsigned char 2019-05-30 08:21:33 +08:00