Skip to content

Commit

Permalink
fix recursive calls to curl_multi API from the user handler
Browse files Browse the repository at this point in the history
  • Loading branch information
m6w6 committed Feb 21, 2022
1 parent deec5bd commit e7b1f15
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/php_http_client_curl_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e7b1f15

Please sign in to comment.