amphp / http-client

An advanced async HTTP client library for PHP, enabling efficient, non-blocking, and concurrent requests and responses.
https://amphp.org/http-client
MIT License
707 stars 66 forks source link

ConnectionLimitingPool closing connections while in use #277

Closed descawed closed 4 years ago

descawed commented 4 years ago

I've been troubleshooting some connection errors in my application and I've tracked them down to a couple issues in ConnectionLimitingPool:

These errors result in connections not being removed the list of idle connections when they should be, which can lead to connections being closed while still in use. I'll submit a PR for this momentarily.

kelunik commented 4 years ago

You seem to be running into some pretty hard to debug edge cases. Thank you!