Skip to content

[5.0] add tests for http's max-*-in-flight configs#2207

Merged
spoonincode merged 5 commits intorelease/5.0from
http_max_in_flight_tests
Feb 6, 2024
Merged

[5.0] add tests for http's max-*-in-flight configs#2207
spoonincode merged 5 commits intorelease/5.0from
http_max_in_flight_tests

Conversation

@spoonincode
Copy link
Contributor

No description provided.

Base automatically changed from http_max_429to503_50 to release/5.0 February 5, 2024 19:21
// post back to an HTTP thread to allow the response handler to be called from any thread
boost::asio::dispatch(plugin_state.thread_pool.get_executor(),
[&plugin_state, session_ptr{std::move(session_ptr)}, code, payload_size, response = std::move(response), content_type]() {
auto on_exit = fc::scoped_exit<std::function<void()>>([&](){plugin_state.bytes_in_flight -= payload_size;});
Copy link
Contributor

@greg7mdp greg7mdp Feb 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't we decrement bytes_in_flight twice in the non-error case? my bad.

@spoonincode spoonincode merged commit e417a83 into release/5.0 Feb 6, 2024
@spoonincode spoonincode deleted the http_max_in_flight_tests branch February 6, 2024 02:31
@heifner heifner added this to the Leap v5.0.1 milestone Feb 6, 2024
@ericpassmore
Copy link
Contributor

Note:start
group: STABILITY
category: TEST
summary: Test coverage for two conditions excessive network traffic or excessive number of connection.
Note: end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants