diff options
author | 2024-11-13 16:31:53 +0100 | |
---|---|---|
committer | 2024-11-14 18:59:45 +0000 | |
commit | 1c9d1de9bccebcf574c923937b34ef5705d4d0ed (patch) | |
tree | c63fb3066f679fdac57245f9472a20e4e0861594 /src/plugins/http_static | |
parent | 1fe2501702c90ff3253dccfe72c34de21a41a9a8 (diff) |
http: state machine improvement
Split in two, one for rx and second for tx, which is more suitable for
http tunnels. Updated state names too, some of them were bit confusing.
Type: improvement
Change-Id: I2310deaa49196819f9d8147a5d9af188465dbd65
Signed-off-by: Matus Fabian <matfabia@cisco.com>
Diffstat (limited to 'src/plugins/http_static')
-rw-r--r-- | src/plugins/http_static/static_server.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/http_static/static_server.c b/src/plugins/http_static/static_server.c index a37cc3f03b2..9cc3f5dd658 100644 --- a/src/plugins/http_static/static_server.c +++ b/src/plugins/http_static/static_server.c @@ -126,6 +126,9 @@ start_send_data (hss_session_t *hs, http_status_code_t status) ASSERT (rv == sizeof (headers)); } + if (!msg.data.body_len) + goto done; + uword data = pointer_to_uword (hs->data); rv = svm_fifo_enqueue (ts->tx_fifo, sizeof (data), (u8 *) &data); ASSERT (rv == sizeof (data)); |