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

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

Merged
merged 5 commits into from
Feb 6, 2024

Conversation

spoonincode
Copy link
Member

No description provided.

Base automatically changed from http_max_429to503_50 to release/5.0 February 5, 2024 19:21
@@ -161,13 +161,14 @@ inline auto make_http_response_handler(http_plugin_state& plugin_state, detail::
// 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
29 checks passed
@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