[HttpClient] unset activity list when creating CurlResponse

This commit is contained in:
Nicolas Grekas 2020-06-23 20:33:34 +02:00
parent 030b10ca0d
commit b249f00519

View File

@ -43,6 +43,7 @@ final class CurlResponse implements ResponseInterface
$this->multi = $multi; $this->multi = $multi;
if (\is_resource($ch)) { if (\is_resource($ch)) {
unset($multi->handlesActivity[(int) $ch]);
$this->handle = $ch; $this->handle = $ch;
$this->debugBuffer = fopen('php://temp', 'w+'); $this->debugBuffer = fopen('php://temp', 'w+');
if (0x074000 === $curlVersion) { if (0x074000 === $curlVersion) {