-
Notifications
You must be signed in to change notification settings - Fork 594
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
Requests with closed upstreams are not handled with max-connections
#368
Comments
Ok, the reason is probably that in |
Exactly. Moving |
To find out whether the materialization for one connection has finished bindAndHandle will now use two `watchTermination` combinators. As explained in the Scaladoc this will still not provide 100 percent guarantee that all of the flow will have finished but it is hopefully more accurate than before.
* =htc #368 document the guarantees of `max-connections` Actually providing better guarantees turned out to be difficult, so being clear about the limit being an approximate one seems to be the best solution for now. See also the discussions in #371. Fixes #368. * =htc #368 be more accurate about `max-connections` To find out whether the materialization for one connection has finished bindAndHandle will now use two `watchTermination` combinators. As explained in the Scaladoc this will still not provide 100 percent guarantee that all of the flow will have finished but it is hopefully more accurate than before.
* =htc akka#368 document the guarantees of `max-connections` Actually providing better guarantees turned out to be difficult, so being clear about the limit being an approximate one seems to be the best solution for now. See also the discussions in akka#371. Fixes akka#368. * =htc akka#368 be more accurate about `max-connections` To find out whether the materialization for one connection has finished bindAndHandle will now use two `watchTermination` combinators. As explained in the Scaladoc this will still not provide 100 percent guarantee that all of the flow will have finished but it is hopefully more accurate than before.
Reproducer here
The problem is that when
max-connections
is set to a lower value than gatling load test opens connections, some incoming connections are buffered in the OS kernel throughout all of the test. When the test finishes, these buffered connections are closed by gatling, but akka-http server still handles them without respectingmax-connections
setting.The text was updated successfully, but these errors were encountered: