@@ -974,7 +974,7 @@ void test_http_response_chunked_multi_stage_trailers()
974974 test_ctx_destroy (ctx );
975975}
976976
977- void test_http_timeout_setters_clamp_io_timeout ()
977+ void test_http_timeout_setters_preserve_upstream_io_timeout ()
978978{
979979 struct test_ctx * ctx ;
980980 struct flb_http_client * c ;
@@ -995,13 +995,16 @@ void test_http_timeout_setters_clamp_io_timeout()
995995 }
996996
997997 TEST_CHECK (flb_http_set_response_timeout (c , 5 ) == 0 );
998- TEST_CHECK (ctx -> u -> base .net .io_timeout == 5 );
998+ TEST_CHECK (ctx -> u -> base .net .io_timeout == 10 );
999+ TEST_CHECK (c -> u_conn -> net -> io_timeout == 5 );
9991000
10001001 TEST_CHECK (flb_http_set_read_idle_timeout (c , 3 ) == 0 );
1001- TEST_CHECK (ctx -> u -> base .net .io_timeout == 3 );
1002+ TEST_CHECK (ctx -> u -> base .net .io_timeout == 10 );
1003+ TEST_CHECK (c -> u_conn -> net -> io_timeout == 3 );
10021004
10031005 TEST_CHECK (flb_http_set_response_timeout (c , 8 ) == 0 );
1004- TEST_CHECK (ctx -> u -> base .net .io_timeout == 3 );
1006+ TEST_CHECK (ctx -> u -> base .net .io_timeout == 10 );
1007+ TEST_CHECK (c -> u_conn -> net -> io_timeout == 3 );
10051008
10061009 flb_http_client_destroy (c );
10071010 test_ctx_destroy (ctx );
@@ -1037,6 +1040,6 @@ TEST_LIST = {
10371040 { "response_chunked_empty_terminal_split" , test_http_response_chunked_empty_terminal_split },
10381041 { "response_chunked_uppercase_hex_whitespace" , test_http_response_chunked_uppercase_hex_whitespace },
10391042 { "response_chunked_multi_stage_trailers" , test_http_response_chunked_multi_stage_trailers },
1040- { "timeout_setters_clamp_io_timeout " , test_http_timeout_setters_clamp_io_timeout },
1043+ { "timeout_setters_preserve_upstream_io_timeout " , test_http_timeout_setters_preserve_upstream_io_timeout },
10411044 { 0 }
10421045};
0 commit comments