@@ -1293,19 +1293,19 @@ TEST_CASE(h2_sm_with_initial_settings) {
12931293 return s_tester_clean_up ();
12941294}
12951295
1296- /* Test that max_total_streams limits the total number of active streams */
1297- TEST_CASE (h2_sm_mock_max_total_streams ) {
1296+ /* Test that max_concurrent_streams limits the total number of active streams */
1297+ TEST_CASE (h2_sm_mock_max_concurrent_streams ) {
12981298 (void )ctx ;
1299- size_t max_total_streams = 5 ;
1299+ size_t max_concurrent_streams = 5 ;
13001300 struct sm_tester_options options = {
13011301 .max_connections = 3 ,
13021302 .max_concurrent_streams_per_connection = 10 ,
13031303 .alloc = allocator ,
13041304 };
13051305 ASSERT_SUCCESS (s_tester_init (& options ));
13061306
1307- /* Set max_total_streams on the stream manager */
1308- s_tester .stream_manager -> max_total_streams = max_total_streams ;
1307+ /* Set max_concurrent_streams on the stream manager */
1308+ s_tester .stream_manager -> max_concurrent_streams = max_concurrent_streams ;
13091309
13101310 s_override_cm_connect_function (s_aws_http_connection_manager_create_connection_sync_mock );
13111311
@@ -1317,9 +1317,9 @@ TEST_CASE(h2_sm_mock_max_total_streams) {
13171317 ASSERT_SUCCESS (s_wait_on_fake_connection_count (1 ));
13181318 s_drain_all_fake_connection_testing_channel ();
13191319
1320- /* Should have acquired only max_total_streams streams */
1321- ASSERT_SUCCESS (s_wait_on_streams_acquired_count (max_total_streams ));
1322- ASSERT_UINT_EQUALS (max_total_streams , aws_array_list_length (& s_tester .streams ));
1320+ /* Should have acquired only max_concurrent_streams streams */
1321+ ASSERT_SUCCESS (s_wait_on_streams_acquired_count (max_concurrent_streams ));
1322+ ASSERT_UINT_EQUALS (max_concurrent_streams , aws_array_list_length (& s_tester .streams ));
13231323
13241324 /* Complete 3 streams */
13251325 struct sm_fake_connection * fake_connection = s_get_fake_connection (0 );
@@ -1344,19 +1344,19 @@ TEST_CASE(h2_sm_mock_max_total_streams) {
13441344 return s_tester_clean_up ();
13451345}
13461346
1347- /* Test that max_total_streams works with multiple connections */
1348- TEST_CASE (h2_sm_mock_max_total_streams_multiple_connections ) {
1347+ /* Test that max_concurrent_streams works with multiple connections */
1348+ TEST_CASE (h2_sm_mock_max_concurrent_streams_multiple_connections ) {
13491349 (void )ctx ;
1350- size_t max_total_streams = 8 ;
1350+ size_t max_concurrent_streams = 8 ;
13511351 struct sm_tester_options options = {
13521352 .max_connections = 4 ,
13531353 .max_concurrent_streams_per_connection = 3 ,
13541354 .alloc = allocator ,
13551355 };
13561356 ASSERT_SUCCESS (s_tester_init (& options ));
13571357
1358- /* Set max_total_streams */
1359- s_tester .stream_manager -> max_total_streams = max_total_streams ;
1358+ /* Set max_concurrent_streams */
1359+ s_tester .stream_manager -> max_concurrent_streams = max_concurrent_streams ;
13601360
13611361 s_override_cm_connect_function (s_aws_http_connection_manager_create_connection_sync_mock );
13621362
@@ -1368,9 +1368,9 @@ TEST_CASE(h2_sm_mock_max_total_streams_multiple_connections) {
13681368 ASSERT_SUCCESS (s_wait_on_fake_connection_count (4 ));
13691369 s_drain_all_fake_connection_testing_channel ();
13701370
1371- /* Should have acquired only max_total_streams streams */
1372- ASSERT_SUCCESS (s_wait_on_streams_acquired_count (max_total_streams ));
1373- ASSERT_UINT_EQUALS (max_total_streams , aws_array_list_length (& s_tester .streams ));
1371+ /* Should have acquired only max_concurrent_streams streams */
1372+ ASSERT_SUCCESS (s_wait_on_streams_acquired_count (max_concurrent_streams ));
1373+ ASSERT_UINT_EQUALS (max_concurrent_streams , aws_array_list_length (& s_tester .streams ));
13741374 /* 4 connections total */
13751375 ASSERT_UINT_EQUALS (4 , aws_array_list_length (& s_tester .fake_connections ));
13761376
@@ -1398,8 +1398,8 @@ TEST_CASE(h2_sm_mock_max_total_streams_multiple_connections) {
13981398 return s_tester_clean_up ();
13991399}
14001400
1401- /* Test that max_total_streams = 0 means no limit (default behavior) */
1402- TEST_CASE (h2_sm_mock_max_total_streams_zero_means_no_limit ) {
1401+ /* Test that max_concurrent_streams = 0 means no limit (default behavior) */
1402+ TEST_CASE (h2_sm_mock_max_concurrent_streams_zero_means_no_limit ) {
14031403 (void )ctx ;
14041404 struct sm_tester_options options = {
14051405 .max_connections = 2 ,
@@ -1408,8 +1408,8 @@ TEST_CASE(h2_sm_mock_max_total_streams_zero_means_no_limit) {
14081408 };
14091409 ASSERT_SUCCESS (s_tester_init (& options ));
14101410
1411- /* max_total_streams defaults to 0 (no limit) */
1412- ASSERT_UINT_EQUALS (0 , s_tester .stream_manager -> max_total_streams );
1411+ /* max_concurrent_streams defaults to 0 (no limit) */
1412+ ASSERT_UINT_EQUALS (0 , s_tester .stream_manager -> max_concurrent_streams );
14131413
14141414 s_override_cm_connect_function (s_aws_http_connection_manager_create_connection_sync_mock );
14151415
0 commit comments