[HttpClient] don't fallback to HTTP/1.1 when HTTP/2 streams break
This commit is contained in:
parent
1f0a27a732
commit
0c92bc5a83
@ -283,10 +283,7 @@ final class CurlResponse implements ResponseInterface
|
|||||||
curl_multi_remove_handle($multi->handle, $ch);
|
curl_multi_remove_handle($multi->handle, $ch);
|
||||||
$waitFor[1] = (string) ((int) $waitFor[1] - 1); // decrement the retry counter
|
$waitFor[1] = (string) ((int) $waitFor[1] - 1); // decrement the retry counter
|
||||||
curl_setopt($ch, \CURLOPT_PRIVATE, $waitFor);
|
curl_setopt($ch, \CURLOPT_PRIVATE, $waitFor);
|
||||||
|
curl_setopt($ch, \CURLOPT_FORBID_REUSE, true);
|
||||||
if ('1' === $waitFor[1]) {
|
|
||||||
curl_setopt($ch, \CURLOPT_HTTP_VERSION, \CURL_HTTP_VERSION_1_1);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (0 === curl_multi_add_handle($multi->handle, $ch)) {
|
if (0 === curl_multi_add_handle($multi->handle, $ch)) {
|
||||||
continue;
|
continue;
|
||||||
|
Reference in New Issue
Block a user