http: state machine fix 93/41193/10
authorMatus Fabian <[email protected]>
Thu, 27 Jun 2024 11:20:10 +0000 (13:20 +0200)
committerFlorin Coras <[email protected]>
Tue, 23 Jul 2024 20:37:16 +0000 (20:37 +0000)
commitd086a3650eea95056e738e2cc5dc18ce6edc278b
tree4dcb6d843b01143ab76428c268b6e382c6694545
parent8ca6ce6fe1e65c8b57b9c0910dfd1243db0e49b9
http: state machine fix

When client sends second request without waiting for response of the
first request http_ts_rx_callback should drop request (pipelining is
not supported) instead of invoking return to state machine which can
lead to erroneous state, e.g. reading random data from server app
fifo.

Added simple http static server url handler for testing to simulate
long running request processing, for now hardcoded delay 5 seconds.

Type: fix

Change-Id: Ied9f7e2e4ee64c982f045c0f7f99a2dc5d7a2108
Signed-off-by: Matus Fabian <[email protected]>
extras/hs-test/http_test.go
extras/hs-test/infra/hst_suite.go
src/plugins/hs_apps/CMakeLists.txt
src/plugins/hs_apps/test_builtins.c [new file with mode: 0644]
src/plugins/http/http.c