projects
/
m6w6
/
ext-http
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
58c532f
)
fix recursive calls to curl_multi API from the user handler
author
Michael Wallner
<mike@php.net>
Mon, 21 Feb 2022 10:04:09 +0000
(11:04 +0100)
committer
Michael Wallner
<mike@php.net>
Mon, 21 Feb 2022 10:29:14 +0000
(11:29 +0100)
src/php_http_client_curl_user.c
patch
|
blob
|
history
diff --git
a/src/php_http_client_curl_user.c
b/src/php_http_client_curl_user.c
index 1f69a51cb7203e3d4acb05502f512a703a1f1eb6..95ea6f5388d6abbeea594bb9b939e4312dfe97c2 100644
(file)
--- 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);