Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0c92bc5

Browse files
[HttpClient] don't fallback to HTTP/1.1 when HTTP/2 streams break
1 parent 1f0a27a commit 0c92bc5

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Symfony/Component/HttpClient/Response/CurlResponse.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -283,10 +283,7 @@ private static function perform(ClientState $multi, array &$responses = null): v
283283
curl_multi_remove_handle($multi->handle, $ch);
284284
$waitFor[1] = (string) ((int) $waitFor[1] - 1); // decrement the retry counter
285285
curl_setopt($ch, \CURLOPT_PRIVATE, $waitFor);
286-
287-
if ('1' === $waitFor[1]) {
288-
curl_setopt($ch, \CURLOPT_HTTP_VERSION, \CURL_HTTP_VERSION_1_1);
289-
}
286+
curl_setopt($ch, \CURLOPT_FORBID_REUSE, true);
290287

291288
if (0 === curl_multi_add_handle($multi->handle, $ch)) {
292289
continue;

0 commit comments

Comments
 (0)