Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: fix a race in http2 flood integration test #23094

Merged
merged 1 commit into from
Sep 19, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion test/integration/http2_flood_integration_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1482,9 +1482,12 @@ TEST_P(Http2FloodMitigationTest, RequestMetadata) {
{"header_key1", "header_value1"},
{"header_key2", "header_value2"},
};
Http::MetadataMapVector metadata_map_vector;
metadata_map_vector.push_back(std::make_unique<Http::MetadataMap>(metadata_map));
for (uint32_t frame = 0; frame < AllFrameFloodLimit + 1; ++frame) {
codec_client_->sendMetadata(*request_encoder_, metadata_map);
request_encoder_->encodeMetadata(metadata_map_vector);
}
codec_client_->connection()->dispatcher().run(Event::Dispatcher::RunType::NonBlock);

// Upstream connection should be disconnected
// Downstream client should receive 503 since upstream did not send response headers yet
Expand Down