Skip to content

Commit 28b9ac7

Browse files
author
Kyra Farrow
committed
[HttpClient] fix debug output added to stderr at shutdown
1 parent 7200fb5 commit 28b9ac7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

CurlHttpClient.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,12 @@ public function __destruct()
299299
if (\defined('CURLMOPT_PUSHFUNCTION')) {
300300
curl_multi_setopt($this->multi->handle, CURLMOPT_PUSHFUNCTION, null);
301301
}
302+
303+
while (CURLM_CALL_MULTI_PERFORM === curl_multi_exec($this->multi->handle, $active));
304+
305+
foreach ($this->multi->openHandles as $ch) {
306+
curl_setopt($ch, CURLOPT_VERBOSE, false);
307+
}
302308
}
303309

304310
private static function handlePush($parent, $pushed, array $requestHeaders, CurlClientState $multi, int $maxPendingPushes, ?LoggerInterface $logger): int

0 commit comments

Comments
 (0)