MFB: Fixed Bug #15813 Requests not removed from multi stack when fatal errors...
authorMichael Wallner <mike@php.net>
Thu, 12 Feb 2009 16:50:54 +0000 (16:50 +0000)
committerMichael Wallner <mike@php.net>
Thu, 12 Feb 2009 16:50:54 +0000 (16:50 +0000)
http_request_pool_api.c

index fcc015ea8692dca4486d64134f22c40ab058d8fa..d1d76c31e17f7eb405f36b9254f03b75a789d658 100644 (file)
@@ -301,6 +301,8 @@ PHP_HTTP_API void _http_request_pool_dtor(http_request_pool *pool)
        efree(pool->timeout);
 #endif
        
+       http_request_pool_detach_all(pool);
+       
        pool->unfinished = 0;
        zend_llist_clean(&pool->finished);
        zend_llist_clean(&pool->handles);