Closed thomasvargiu closed 4 years ago
Tests are failing now?
Yes you're right, what I wrote is breaking the chain. I'm going to look at it better
So, the problem is on passing the first callable to plugins, it creates a reference loop.
The only way to resolve it, is to create a new chain of callables for every plugin request, using the new PluginChain
instance as first callable.
Please revert the CS fixes, then rebase.
@GrahamCampbell is the change with the plugin chain good otherwise?
Yeh, if you extract just the changes to the files that are needed (I think 3 files?).
Sorted out a replacement here: https://github.com/php-http/client-common/pull/194.
Hi, there is a big memory leak when using the
PluginClient
with plugins.Example code to reproduce the issue:
This PR fixes it removing useless variable reference.