Payload will not been destruct from memory when not read body.
while (true) {
$url = 'Some short url';
$response = $client->request(new Request($url));
echo $response->getHeader('Location');
}
You can add a static counter on Payload construct and destruct, will find out.
How is it currently fixed in the own code?
Call $response->getBody()->buffer() or $response->getBody()->close() after read response.
Payload will not been destruct from memory when not read body.
You can add a static counter on Payload
constructanddestruct, will find out.How is it currently fixed in the own code?
Call
$response->getBody()->buffer()or$response->getBody()->close()after read response.