File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1364,8 +1364,19 @@ static void s_s3_client_assign_requests_to_connections_threaded(
13641364 (!client_active || (vip_connection -> http_connection == NULL ||
13651365 !aws_http_connection_is_open (vip_connection -> http_connection ) ||
13661366 vip_connection -> request_count >= s_s3_max_request_count_per_connection ))) {
1367+
1368+ if (vip_connection -> is_active ) {
1369+ int sub_result = aws_sub_u32_checked (
1370+ client -> threaded_data .num_active_vip_connections ,
1371+ 1 ,
1372+ & client -> threaded_data .num_active_vip_connections );
1373+ AWS_ASSERT (sub_result == AWS_OP_SUCCESS );
1374+ (void )sub_result ;
1375+
1376+ vip_connection -> is_active = false;
1377+ }
1378+
13671379 aws_s3_vip_connection_destroy (client , vip_connection );
1368- -- client -> threaded_data .num_active_vip_connections ;
13691380 continue ;
13701381 }
13711382
You can’t perform that action at this time.
0 commit comments