aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/hs_apps/http_tps.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2022-02-22 22:35:34 -0800
committerDave Wallace <dwallacelf@gmail.com>2022-02-24 20:04:15 +0000
commitaa0c03fa46977d02dae5001404a1a8dc9abf934c (patch)
treef50949c4e27320a5fae2bfbfd7eeb0c91cbe2521 /src/plugins/hs_apps/http_tps.c
parent447e51d4e4ed08df7f370b150d851842bcafa957 (diff)
hsa: fix tps data offset on connection reuse
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: Ibe92497cc5446ac5c734f8fe5c63c0167204dd09
Diffstat (limited to 'src/plugins/hs_apps/http_tps.c')
-rw-r--r--src/plugins/hs_apps/http_tps.c1
1 files changed, 1 insertions, 0 deletions
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);