@@ -262,7 +262,7 @@ private static function perform(CurlClientState $multi, array &$responses = null
262
262
$ id = (int ) $ ch = $ info ['handle ' ];
263
263
$ waitFor = @curl_getinfo ($ ch , CURLINFO_PRIVATE ) ?: '_0 ' ;
264
264
265
- if (\in_array ($ result , [\ CURLE_SEND_ERROR , \ CURLE_RECV_ERROR , /*CURLE_HTTP2*/ 16 , /*CURLE_HTTP2_STREAM*/ 92 ], true ) && $ waitFor [1 ] && 'C ' !== $ waitFor [0 ]) {
265
+ if (\in_array ($ result , [CURLE_SEND_ERROR , CURLE_RECV_ERROR , /*CURLE_HTTP2*/ 16 , /*CURLE_HTTP2_STREAM*/ 92 ], true ) && $ waitFor [1 ] && 'C ' !== $ waitFor [0 ]) {
266
266
curl_multi_remove_handle ($ multi ->handle , $ ch );
267
267
$ waitFor [1 ] = (string ) ((int ) $ waitFor [1 ] - 1 ); // decrement the retry counter
268
268
curl_setopt ($ ch , CURLOPT_PRIVATE , $ waitFor );
@@ -277,7 +277,7 @@ private static function perform(CurlClientState $multi, array &$responses = null
277
277
}
278
278
279
279
$ multi ->handlesActivity [$ id ][] = null ;
280
- $ multi ->handlesActivity [$ id ][] = \in_array ($ result , [\ CURLE_OK , \ CURLE_TOO_MANY_REDIRECTS ], true ) || '_0 ' === $ waitFor || curl_getinfo ($ ch , CURLINFO_SIZE_DOWNLOAD ) === curl_getinfo ($ ch , CURLINFO_CONTENT_LENGTH_DOWNLOAD ) ? null : new TransportException (sprintf ('%s for "%s". ' , curl_strerror ($ result ), curl_getinfo ($ ch , CURLINFO_EFFECTIVE_URL )));
280
+ $ multi ->handlesActivity [$ id ][] = \in_array ($ result , [CURLE_OK , CURLE_TOO_MANY_REDIRECTS ], true ) || '_0 ' === $ waitFor || curl_getinfo ($ ch , CURLINFO_SIZE_DOWNLOAD ) === curl_getinfo ($ ch , CURLINFO_CONTENT_LENGTH_DOWNLOAD ) ? null : new TransportException (sprintf ('%s for "%s". ' , curl_strerror ($ result ), curl_getinfo ($ ch , CURLINFO_EFFECTIVE_URL )));
281
281
}
282
282
} finally {
283
283
self ::$ performing = false ;
0 commit comments