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

Skip to content

Commit 276ef95

Browse files
[HttpClient] minor change
1 parent 1e3d60b commit 276ef95

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/Symfony/Component/HttpClient/Internal/CurlClientState.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ public function reset()
8989
curl_multi_setopt($this->handle, \CURLMOPT_PUSHFUNCTION, null);
9090
}
9191

92+
curl_multi_close($this->handle);
9293
$this->__construct($this->maxHostConnections, $this->maxPendingPushes);
9394
}
9495
}

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,8 @@ private static function perform(ClientState $multi, array &$responses = null): v
275275
try {
276276
self::$performing = true;
277277
$active = 0;
278-
while (\CURLM_CALL_MULTI_PERFORM === ($err = curl_multi_exec($multi->handle, $active)));
278+
while (\CURLM_CALL_MULTI_PERFORM === ($err = curl_multi_exec($multi->handle, $active))) {
279+
}
279280

280281
if (\CURLM_OK !== $err) {
281282
throw new TransportException(curl_multi_strerror($err));

0 commit comments

Comments
 (0)