fix recursive calls to curl_multi API from the event handler
authorMichael Wallner <mike@php.net>
Mon, 21 Feb 2022 10:06:19 +0000 (11:06 +0100)
committerMichael Wallner <mike@php.net>
Mon, 21 Feb 2022 10:29:14 +0000 (11:29 +0100)
src/php_http_client_curl_event.c

index b8db1b2d5e15c33429b1c6f6cdc7c06da70ff201..2e663ed74c0bc9348b32e585b77e47670ce9deaa 100644 (file)
@@ -97,8 +97,6 @@ static void php_http_client_curl_event_timer(CURLM *multi, long timeout_ms, void
                }
                break;
        case 0:
-               php_http_client_curl_event_handler(context, CURL_SOCKET_TIMEOUT, 0);
-               break;
        default:
                if (!event_initialized(context->timeout)) {
                        event_assign(context->timeout, context->evbase, CURL_SOCKET_TIMEOUT, 0, php_http_client_curl_event_timeout_callback, context);