From 4cce7088d1a7b7ac28966686088f6d2478286f12 Mon Sep 17 00:00:00 2001 From: Amaury Denoyelle Date: Thu, 18 Feb 2021 16:03:37 +0100 Subject: [PATCH] REGTESTS: reorder reuse conn proxy protocol test Try to fix http_reuse_conn_hash proxy protocol for both single and multi-thread environment. Schedule a new set of requests to be sure that takeover will be functional even with pool-low-count set to 2. --- reg-tests/connection/http_reuse_conn_hash.vtc | 30 ++++++++++++------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/reg-tests/connection/http_reuse_conn_hash.vtc b/reg-tests/connection/http_reuse_conn_hash.vtc index f6c8765e1..991e86f7a 100644 --- a/reg-tests/connection/http_reuse_conn_hash.vtc +++ b/reg-tests/connection/http_reuse_conn_hash.vtc @@ -123,15 +123,9 @@ client c_proxy -connect ${h1_feS_proxy_sock} -proxy1 "127.0.0.1:40000 ${h1_feS_p expect resp.http.http_first_request == "0" } -run -## second request with same proxy protocol entry -client c_proxy -connect ${h1_feS_proxy_sock} -proxy1 "127.0.0.1:40000 ${h1_feS_proxy_addr}:${h1_feS_proxy_port}" { - txreq - rxresp - expect resp.status == 200 - expect resp.http.http_first_request == "0" -} -run - -## third request with different proxy protocol entry, no reuse +## second request with different proxy protocol +# this have the nice effect to fill the server pool to 2 connection +# (pool-low-conn value) to allow takeover on multi thread run client c_proxy -connect ${h1_feS_proxy_sock} -proxy1 "127.0.0.1:50000 ${h1_feS_proxy_addr}:${h1_feS_proxy_port}" { txreq rxresp @@ -139,7 +133,23 @@ client c_proxy -connect ${h1_feS_proxy_sock} -proxy1 "127.0.0.1:50000 ${h1_feS_p expect resp.http.http_first_request == "1" } -run -## fourth request, reuse proxy protocol +## third request, reuse same proxy protocol entry +client c_proxy -connect ${h1_feS_proxy_sock} -proxy1 "127.0.0.1:40000 ${h1_feS_proxy_addr}:${h1_feS_proxy_port}" { + txreq + rxresp + expect resp.status == 200 + expect resp.http.http_first_request == "0" +} -run + +## fourth request with different proxy protocol entry, no reuse +client c_proxy -connect ${h1_feS_proxy_sock} -proxy1 "127.0.0.1:60000 ${h1_feS_proxy_addr}:${h1_feS_proxy_port}" { + txreq + rxresp + expect resp.status == 200 + expect resp.http.http_first_request == "1" +} -run + +## fifth request, reuse proxy protocol client c_proxy -connect ${h1_feS_proxy_sock} -proxy1 "127.0.0.1:50000 ${h1_feS_proxy_addr}:${h1_feS_proxy_port}" { txreq rxresp