diff options
author | Aritra Basu <aritrbas@cisco.com> | 2024-08-28 14:02:34 -0700 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2024-09-17 15:59:00 +0000 |
commit | 70d2a08e7efa0ecb255f2174e6a57b6511016059 (patch) | |
tree | 528cfdba2d063965ff33081e40d3a0e32ddf6a35 /src/plugins/hs_apps/vcl/vcl_test_client.c | |
parent | 0acb398d6d13b03514bcda72a7b52ece28932b1f (diff) |
vcl: add http support to vcl_test_protos
Type: improvement
Change-Id: Ibb493f1d7713d0e10b8bd1d5ff17b89967b53b8a
Signed-off-by: Aritra Basu <aritrbas@cisco.com>
Diffstat (limited to 'src/plugins/hs_apps/vcl/vcl_test_client.c')
-rw-r--r-- | src/plugins/hs_apps/vcl/vcl_test_client.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/plugins/hs_apps/vcl/vcl_test_client.c b/src/plugins/hs_apps/vcl/vcl_test_client.c index a4a10b562ff..8bac1f00b9d 100644 --- a/src/plugins/hs_apps/vcl/vcl_test_client.c +++ b/src/plugins/hs_apps/vcl/vcl_test_client.c @@ -419,13 +419,8 @@ vtc_worker_run_select (vcl_test_client_worker_t *wrk) if (vcm->incremental_stats) vtc_inc_stats_check (ts); } - if ((!check_rx && ts->stats.tx_bytes >= ts->cfg.total_bytes) || - (check_rx && ts->stats.rx_bytes >= ts->cfg.total_bytes)) - { - clock_gettime (CLOCK_REALTIME, &ts->stats.stop); - ts->is_done = 1; - n_active_sessions--; - } + if (vtc_session_check_is_done (ts, check_rx)) + n_active_sessions -= 1; } } |