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 fcc015e..d1d76c3 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);