- raise default timeouts (were way too low for e.g. modem commections
authorMichael Wallner <mike@php.net>
Tue, 28 Jun 2005 16:25:47 +0000 (16:25 +0000)
committerMichael Wallner <mike@php.net>
Tue, 28 Jun 2005 16:25:47 +0000 (16:25 +0000)
http_request_api.c

index aac05fd62f2937be778d4a75d089cd3868b01b28..24b1acc5a8bd3e0a3cd53f237f7cbbd5f916a158 100644 (file)
@@ -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 */