From: Florin Coras Date: Wed, 23 Feb 2022 06:35:34 +0000 (-0800) Subject: hsa: fix tps data offset on connection reuse X-Git-Tag: v22.10-rc0~345 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F17%2F35417%2F3;p=vpp.git hsa: fix tps data offset on connection reuse Type: fix Signed-off-by: Florin Coras Change-Id: Ibe92497cc5446ac5c734f8fe5c63c0167204dd09 --- diff --git a/src/plugins/hs_apps/http_tps.c b/src/plugins/hs_apps/http_tps.c index 089350eb506..31d766b4668 100644 --- a/src/plugins/hs_apps/http_tps.c +++ b/src/plugins/hs_apps/http_tps.c @@ -236,6 +236,7 @@ try_test_file (hts_session_t *hs, u8 *request) clib_warning ("Requested file size %U", format_memory_size, file_size); hs->data_len = file_size; + hs->data_offset = 0; hts_start_send_data (hs, HTTP_STATUS_OK);