Comments (2)
Well, the first order of business is that this setting only limits the number of connections on a per-host basis -- it doesn't limit all connections. Are you observing this behavior for a single host? I.E. if you you request www.google.com
many times at once do you see the same thing?
This configuration basically exists to prevent me from getting IP bans from hammering the same hosts with tons of connections at once. When making many concurrent requests to the same host our connections are "checked-in" and "checked-out" with individual requests queued until a connection to the host in question is available.
Second, a new read watcher is created inside the Client
class each time a socket connection is checked out. This is expected. The alternative would be to map a single watcher to each socket, but this approach would require the underlying socket lib (Acesync) to notify the client class each time an idle connection was closed.
If you wish to verify that new connections aren't being created in excess of the OP_HOST_CONNECTION_LIMIT
you can add some basic print debugging here.
from http-client.
I'm closing this for now. Please let me know if you still believe this is an issue.
from http-client.
Related Issues (20)
- 5.x: Review Form API
- Memory issue in HTTP 2 connection HOT 1
- 5.x: Call to a member function getFuture() on null HOT 3
- If a response redirects, it sends back raw gzip instead of decoded content HOT 1
- `Form` not sent with same semantics as `FormBody` HOT 4
- Remove UnprocessedRequestException HOT 1
- Beta 11 encodes repeated form fields differently HOT 2
- Double redirect still returns gzip compressed data
- 4.x's php version depends changed because of league/uri HOT 2
- Log errors in LogHttpArchive
- [v5.0.0-beta.14] Invalid request phase transition from Connect to RequestHeaders HOT 4
- Amp\Http\Client\TimeoutException: Allowed transfer timeout exceeded, took longer than 10 s in /home/madeline/vendor/amphp/http-client/src/Connection/Internal/Http2ConnectionProcessor.php:1562 HOT 1
- Allow detection whether a connection has been reused
- [v5.0.0 Beta 15] Invalid request phase transition from Rejected to Failed HOT 1
- requestEnd() is not called in event listener in sync mode. HOT 5
- Response streaming during request upload
- Invalid certificate throws a misleading error
- [5.1.0] Deadlock and warnings when Http2 connection breaks HOT 1
- Unexpected behavior: Closing body stream result in an error
- Segmentation fault (11) when opcache is activated HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from http-client.