|
|
|
@ -23,6 +23,7 @@ |
|
|
|
|
#include <grpc/impl/channel_arg_names.h> |
|
|
|
|
#include <grpc/status.h> |
|
|
|
|
|
|
|
|
|
#include "src/core/ext/transport/chttp2/transport/internal.h" |
|
|
|
|
#include "src/core/lib/channel/channel_args.h" |
|
|
|
|
#include "src/core/lib/gprpp/time.h" |
|
|
|
|
#include "test/core/end2end/end2end_tests.h" |
|
|
|
@ -58,7 +59,10 @@ void SimpleRequestBody(CoreEnd2endTest& test) { |
|
|
|
|
|
|
|
|
|
CORE_END2END_TEST(Http2SingleHopTest, MaxConcurrentStreams) { |
|
|
|
|
SKIP_IF_MINSTACK(); |
|
|
|
|
InitServer(ChannelArgs().Set(GRPC_ARG_MAX_CONCURRENT_STREAMS, 1)); |
|
|
|
|
InitServer( |
|
|
|
|
ChannelArgs() |
|
|
|
|
.Set(GRPC_ARG_MAX_CONCURRENT_STREAMS, 1) |
|
|
|
|
.Set(GRPC_ARG_MAX_CONCURRENT_STREAMS_OVERLOAD_PROTECTION, false)); |
|
|
|
|
InitClient(ChannelArgs()); |
|
|
|
|
// perform a ping-pong to ensure that settings have had a chance to round
|
|
|
|
|
// trip
|
|
|
|
@ -152,7 +156,10 @@ CORE_END2END_TEST(Http2SingleHopTest, MaxConcurrentStreams) { |
|
|
|
|
|
|
|
|
|
CORE_END2END_TEST(Http2SingleHopTest, MaxConcurrentStreamsTimeoutOnFirst) { |
|
|
|
|
SKIP_IF_MINSTACK(); |
|
|
|
|
InitServer(ChannelArgs().Set(GRPC_ARG_MAX_CONCURRENT_STREAMS, 1)); |
|
|
|
|
InitServer( |
|
|
|
|
ChannelArgs() |
|
|
|
|
.Set(GRPC_ARG_MAX_CONCURRENT_STREAMS, 1) |
|
|
|
|
.Set(GRPC_ARG_MAX_CONCURRENT_STREAMS_OVERLOAD_PROTECTION, false)); |
|
|
|
|
InitClient(ChannelArgs()); |
|
|
|
|
// perform a ping-pong to ensure that settings have had a chance to round
|
|
|
|
|
// trip
|
|
|
|
@ -197,7 +204,10 @@ CORE_END2END_TEST(Http2SingleHopTest, MaxConcurrentStreamsTimeoutOnFirst) { |
|
|
|
|
|
|
|
|
|
CORE_END2END_TEST(Http2SingleHopTest, MaxConcurrentStreamsTimeoutOnSecond) { |
|
|
|
|
SKIP_IF_MINSTACK(); |
|
|
|
|
InitServer(ChannelArgs().Set(GRPC_ARG_MAX_CONCURRENT_STREAMS, 1)); |
|
|
|
|
InitServer( |
|
|
|
|
ChannelArgs() |
|
|
|
|
.Set(GRPC_ARG_MAX_CONCURRENT_STREAMS, 1) |
|
|
|
|
.Set(GRPC_ARG_MAX_CONCURRENT_STREAMS_OVERLOAD_PROTECTION, false)); |
|
|
|
|
InitClient(ChannelArgs()); |
|
|
|
|
// perform a ping-pong to ensure that settings have had a chance to round
|
|
|
|
|
// trip
|
|
|
|
|