-
Notifications
You must be signed in to change notification settings - Fork 123
make maximumConcurrentConnections
configurable
#373
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
Comments
cf rdar://79360051 |
Agreed that |
@Lukasa well, isn't the browser limit 6 per host? The AHC limit is AFAIK a global maximum connection limit, ie. AHC will never do more than 8 open connections. |
Yes, it's 6 per origin. So far as I can see in the AHC code the 8 limit is also per origin: it's in the |
@Lukasa I think you're right, thank you! Okay, in that case let's call 8 a good default but we should make it configurable. |
@fabianfett As you're doing a substantial rework of the pool, want to factor this in? May be worth making this change once on mainline because it should be straightforward, but making sure the API can fold nicely into your work. |
@fabianfett I think this needs to be moved to the 1.6.0 milestone, correct? |
maximumConcurrentConnections
is an important property for any system using AHC, it therefore should really be configurableTechnically, the introduction of the "max 8 connections at a time" can be seen as API breaking in AHC version 1.1.0. There are certainly programs that worked correctly with AHC 1.0.0 (without the pool) and then broke with 1.1.0 which limited the number of concurrent connections to 8.
The text was updated successfully, but these errors were encountered: