Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 276ef95

Browse filesBrowse files
[HttpClient] minor change
1 parent 1e3d60b commit 276ef95
Copy full SHA for 276ef95

File tree

2 files changed

+3
-1
lines changed
Filter options

2 files changed

+3
-1
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpClient/Internal/CurlClientState.php
+1Lines 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

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpClient/Response/CurlResponse.php
+2-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.