Fixed Bug #15813 Requests not removed from multi stack when fatal errors occur
[m6w6/ext-http] / http_request_pool_api.c
index e5482b41da4778dc90661b82b11f59c01fd3f262..250783d912dd4c28ecc385f3a4d6ed7b651ccef8 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);