{"action":"created","issue":{"url":"https://api.github.com/repos/m6w6/ext-http/issues/23","repository_url":"https://api.github.com/repos/m6w6/ext-http","labels_url":"https://api.github.com/repos/m6w6/ext-http/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/m6w6/ext-http/issues/23/comments","events_url":"https://api.github.com/repos/m6w6/ext-http/issues/23/events","html_url":"https://github.com/m6w6/ext-http/issues/23","id":130698538,"number":23,"title":"Memory constantly growing","user":{"login":"optyfr","id":17027109,"avatar_url":"https://avatars.githubusercontent.com/u/17027109?v=3","gravatar_id":"","url":"https://api.github.com/users/optyfr","html_url":"https://github.com/optyfr","followers_url":"https://api.github.com/users/optyfr/followers","following_url":"https://api.github.com/users/optyfr/following{/other_user}","gists_url":"https://api.github.com/users/optyfr/gists{/gist_id}","starred_url":"https://api.github.com/users/optyfr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/optyfr/subscriptions","organizations_url":"https://api.github.com/users/optyfr/orgs","repos_url":"https://api.github.com/users/optyfr/repos","events_url":"https://api.github.com/users/optyfr/events{/privacy}","received_events_url":"https://api.github.com/users/optyfr/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/m6w6/ext-http/labels/in%20progress","name":"in progress","color":"0052cc"},{"url":"https://api.github.com/repos/m6w6/ext-http/labels/PHP5","name":"PHP5","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":21,"created_at":"2016-02-02T14:30:50Z","updated_at":"2016-02-03T12:58:47Z","closed_at":null,"body":"I want to send using only 1 client instance lot of requests (100000) using enqueue() + a callback and a send() each 50 requests, but memory keeps constantly growing despite that finished requests are dequeued (count() is never above 50), only a call reset() on client (or destroy then recreate client instance) seems to free memory... it seems to keep references of finished requests is that a normal behaviour? php script is at 128MB around 1500 requests...\r\n\r\nTested on 2.5.5 version with PHP 5.6"},"comment":{"url":"https://api.github.com/repos/m6w6/ext-http/issues/comments/179213462","html_url":"https://github.com/m6w6/ext-http/issues/23#issuecomment-179213462","issue_url":"https://api.github.com/repos/m6w6/ext-http/issues/23","id":179213462,"user":{"login":"m6w6","id":1265282,"avatar_url":"https://avatars.githubusercontent.com/u/1265282?v=3","gravatar_id":"","url":"https://api.github.com/users/m6w6","html_url":"https://github.com/m6w6","followers_url":"https://api.github.com/users/m6w6/followers","following_url":"https://api.github.com/users/m6w6/following{/other_user}","gists_url":"https://api.github.com/users/m6w6/gists{/gist_id}","starred_url":"https://api.github.com/users/m6w6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m6w6/subscriptions","organizations_url":"https://api.github.com/users/m6w6/orgs","repos_url":"https://api.github.com/users/m6w6/repos","events_url":"https://api.github.com/users/m6w6/events{/privacy}","received_events_url":"https://api.github.com/users/m6w6/received_events","type":"User","site_admin":false},"created_at":"2016-02-03T12:58:47Z","updated_at":"2016-02-03T12:58:47Z","body":"> ok, so would it be possible then to not keep response when a callback use is detected and returning true?\r\n\r\nPossible? Sure, but BC breaks, you know... :-/"}}