-
Notifications
You must be signed in to change notification settings - Fork 53
Revert "Removed the HTTPClientPool feature" #49
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
Conversation
|
How does this feature look? Are we ready to merge it back to master and release a stable version? |
|
This is in the queue for a long time now. Can we wrap it up in the near future or we put it on a nice to have list? Currently I added it to the 1.5.0 milestone which has no ETA yet. |
|
Ping. I really want this in master. |
|
Ping @joelwurtz. |
| * | ||
| * @return bool | ||
| */ | ||
| public function isDisabled() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be final ? (and tagged with @internal)
| * | ||
| * @return int | ||
| */ | ||
| public function getSendingRequestCount() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be final ? (and tagged with @internal)
|
I ask two questions here, a part from that i'm happy on how it's done. So if you have input on this 👍 |
649a88b to
f75916f
Compare
| $this->shouldThrow('Http\Client\Exception\HttpException')->duringSendRequest($request); | ||
| } | ||
|
|
||
| public function it_uses_the_lowest_request_client(HttpClientPoolItem $client1, HttpClientPoolItem $client2, RequestInterface $request, ResponseInterface $response) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we okey to remove this? We cannot use $client1->getSendingRequestCount() or $client1->isDisabled() because those methods are final
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:/ Just using @internal should be enough then
5e0cb12 to
e7d14e4
Compare
Reverts #47