X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Fphp_http_client_curl_user.c;h=95ea6f5388d6abbeea594bb9b939e4312dfe97c2;hb=244c5604d85ba4d4bf5453d02aba1c5e267583d7;hp=1f69a51cb7203e3d4acb05502f512a703a1f1eb6;hpb=512f733beac73f37ba4acbcf730ebc6c6de849b6;p=m6w6%2Fext-http diff --git a/src/php_http_client_curl_user.c b/src/php_http_client_curl_user.c index 1f69a51..95ea6f5 100644 --- a/src/php_http_client_curl_user.c +++ b/src/php_http_client_curl_user.c @@ -57,9 +57,7 @@ static void php_http_client_curl_user_timer(CURLM *multi, long timeout_ms, void fprintf(stderr, "\ntimer <- timeout_ms: %ld\n", timeout_ms); #endif - if (timeout_ms <= 0) { - php_http_client_curl_loop(context->client, CURL_SOCKET_TIMEOUT, 0); - } else { + if (timeout_ms >= 0) { zval args[1], *ztimeout = &args[0]; ZVAL_LONG(ztimeout, timeout_ms);