hsa: fix tps data offset on connection reuse 17/35417/3
authorFlorin Coras <fcoras@cisco.com>
Wed, 23 Feb 2022 06:35:34 +0000 (22:35 -0800)
committerDave Wallace <dwallacelf@gmail.com>
Thu, 24 Feb 2022 20:04:15 +0000 (20:04 +0000)
Type: fix

Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: Ibe92497cc5446ac5c734f8fe5c63c0167204dd09

src/plugins/hs_apps/http_tps.c

index 089350e..31d766b 100644 (file)
@@ -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);