From 046207d5dd06a35f4c492c6169ecfbd8999671cb Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Tue, 28 Jun 2005 16:25:47 +0000 Subject: [PATCH] - raise default timeouts (were way too low for e.g. modem commections --- http_request_api.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 */ -- 2.30.2