From: Michael Wallner Date: Tue, 28 Jun 2005 16:25:47 +0000 (+0000) Subject: - raise default timeouts (were way too low for e.g. modem commections X-Git-Tag: RELEASE_0_10_0~42 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=046207d5dd06a35f4c492c6169ecfbd8999671cb;p=m6w6%2Fext-http - raise default timeouts (were way too low for e.g. modem commections --- diff --git a/http_request_api.c b/http_request_api.c index aac05fd..24b1acc 100644 --- a/http_request_api.c +++ b/http_request_api.c @@ -540,18 +540,18 @@ PHP_HTTP_API STATUS _http_request_init(CURL *ch, http_request_method meth, char HTTP_CURL_OPT(TIMEVALUE, 0); } - /* timeout */ + /* timeout, defaults to 3 */ if (zoption = http_curl_getopt(options, "timeout", IS_LONG)) { HTTP_CURL_OPT(TIMEOUT, Z_LVAL_P(zoption)); } else { - HTTP_CURL_OPT(TIMEOUT, 1); + HTTP_CURL_OPT(TIMEOUT, 3); } - /* connecttimeout, defaults to 1 */ + /* connecttimeout, defaults to 3 */ if (zoption = http_curl_getopt(options, "connecttimeout", IS_LONG)) { HTTP_CURL_OPT(CONNECTTIMEOUT, Z_LVAL_P(zoption)); } else { - HTTP_CURL_OPT(CONNECTTIMEOUT, 1); + HTTP_CURL_OPT(CONNECTTIMEOUT, 3); } /* ssl */