You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bug #45015 [HttpClient] fix resetting DNS/etc when calling CurlHttpClient::reset() (nicolas-grekas)
This PR was merged into the 4.4 branch.
Discussion
----------
[HttpClient] fix resetting DNS/etc when calling CurlHttpClient::reset()
| Q | A
| ------------- | ---
| Branch? | 4.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets | Fix#44900
| License | MIT
| Doc PR | -
This PR reverts #44625 and uses a new curl-share handle instead to reset any state.
Commits
-------
d426646 [HttpClient] fix resetting DNS/etc when calling CurlHttpClient::reset()
@@ -306,9 +306,9 @@ public function stream($responses, float $timeout = null): ResponseStreamInterfa
306
306
thrownew \TypeError(sprintf('"%s()" expects parameter 1 to be an iterable of CurlResponse objects, "%s" given.', __METHOD__, \is_object($responses) ? \get_class($responses) : \gettype($responses)));
307
307
}
308
308
309
-
if (\is_resource($mh = $this->multi->handles[0] ?? null) || $mhinstanceof \CurlMultiHandle) {
309
+
if (\is_resource($this->multi->handle) || $this->multi->handleinstanceof \CurlMultiHandle) {
310
310
$active = 0;
311
-
while (\CURLM_CALL_MULTI_PERFORM === curl_multi_exec($mh, $active)) {
311
+
while (\CURLM_CALL_MULTI_PERFORM === curl_multi_exec($this->multi->handle, $active)) {
0 commit comments