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

LimitedConnectionPool limits concurrent requests instead of concurrent connections #252

Closed
nicolas-grekas opened this issue Jan 14, 2020 · 1 comment · Fixed by #253
Closed

Comments

@nicolas-grekas
Copy link
Contributor

LimitedConnectionPool is not compatible with multiplexing several HTTP/2 requests on a single connection. Instead, it throttles the number of streams, which looks quite counter productive :)

@kelunik kelunik changed the title LimitedConnectionPool doesn't work HTTP/2 multiplexing LimitedConnectionPool limits concurrent requests instead of concurrent connections Jan 14, 2020
@trowski
Copy link
Member

trowski commented Jan 14, 2020

I was working on a PR this morning, incoming soon.

fabpot added a commit to symfony/symfony that referenced this issue Mar 2, 2020
…on Amp's HTTP client (nicolas-grekas)

This PR was merged into the 5.1-dev branch.

Discussion
----------

[HttpClient] Add portable HTTP/2 implementation based on Amp's HTTP client

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

This PR provides an `AmpHttpClient`, which is an adapter between [`amphp/http-client`](https://github.com/amphp/http-client) and `symfony/http-client-contracts`.

~This is an early experiment for now, but it works already on the happy path:~ I have a local h2-intensive script, and while it's slower than CurlHttpClient, this performs quite well!

This could provide a portable implementation of HTTP/2 \o/

/cc @kelunik FYI

Todo:
- [x] async request/response
- [x] streaming and multiplexing
- [x] handle all ssl options
- [x] timers info
- [x] upload/download progress info
- [x] upload/download progress callback
- [x] HTTP proxy support
- [x] streamed upload
- [x] public-key pinning
- [x] peer certificate capturing
- [x] stream casting with `$response->toStream()`
- [x] ~amphp/http-client#241
- [x] extensive debug info
- [x] HTTP/2 PUSH support
- [x] amphp/http-client#243
- [x] amphp/http-client#242
- [x] amphp/http-client#250
- [x] amphp/http-client#239
- [x] ~kelunik/certificate#2
- [x] amphp/socket#71
- [x] amphp/http-client#252

Commits
-------

ef113fe [HttpClient] Add portable HTTP/2 implementation based on Amp's HTTP client
symfony-splitter pushed a commit to symfony/http-client that referenced this issue Mar 2, 2020
…on Amp's HTTP client (nicolas-grekas)

This PR was merged into the 5.1-dev branch.

Discussion
----------

[HttpClient] Add portable HTTP/2 implementation based on Amp's HTTP client

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

This PR provides an `AmpHttpClient`, which is an adapter between [`amphp/http-client`](https://github.com/amphp/http-client) and `symfony/http-client-contracts`.

~This is an early experiment for now, but it works already on the happy path:~ I have a local h2-intensive script, and while it's slower than CurlHttpClient, this performs quite well!

This could provide a portable implementation of HTTP/2 \o/

/cc @kelunik FYI

Todo:
- [x] async request/response
- [x] streaming and multiplexing
- [x] handle all ssl options
- [x] timers info
- [x] upload/download progress info
- [x] upload/download progress callback
- [x] HTTP proxy support
- [x] streamed upload
- [x] public-key pinning
- [x] peer certificate capturing
- [x] stream casting with `$response->toStream()`
- [x] ~amphp/http-client#241
- [x] extensive debug info
- [x] HTTP/2 PUSH support
- [x] amphp/http-client#243
- [x] amphp/http-client#242
- [x] amphp/http-client#250
- [x] amphp/http-client#239
- [x] ~kelunik/certificate#2
- [x] amphp/socket#71
- [x] amphp/http-client#252

Commits
-------

ef113feeb3 [HttpClient] Add portable HTTP/2 implementation based on Amp's HTTP client
sadafrangian3 pushed a commit to sadafrangian3/Dependency-Injection-http-client that referenced this issue Nov 2, 2022
…on Amp's HTTP client (nicolas-grekas)

This PR was merged into the 5.1-dev branch.

Discussion
----------

[HttpClient] Add portable HTTP/2 implementation based on Amp's HTTP client

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

This PR provides an `AmpHttpClient`, which is an adapter between [`amphp/http-client`](https://github.com/amphp/http-client) and `symfony/http-client-contracts`.

~This is an early experiment for now, but it works already on the happy path:~ I have a local h2-intensive script, and while it's slower than CurlHttpClient, this performs quite well!

This could provide a portable implementation of HTTP/2 \o/

/cc @kelunik FYI

Todo:
- [x] async request/response
- [x] streaming and multiplexing
- [x] handle all ssl options
- [x] timers info
- [x] upload/download progress info
- [x] upload/download progress callback
- [x] HTTP proxy support
- [x] streamed upload
- [x] public-key pinning
- [x] peer certificate capturing
- [x] stream casting with `$response->toStream()`
- [x] ~amphp/http-client#241
- [x] extensive debug info
- [x] HTTP/2 PUSH support
- [x] amphp/http-client#243
- [x] amphp/http-client#242
- [x] amphp/http-client#250
- [x] amphp/http-client#239
- [x] ~kelunik/certificate#2
- [x] amphp/socket#71
- [x] amphp/http-client#252

Commits
-------

ef113feeb3 [HttpClient] Add portable HTTP/2 implementation based on Amp's HTTP client
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

2 participants