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:
e3c1b05
)
- raise default timeouts (were way too low for e.g. modem commections
author
Michael Wallner
<mike@php.net>
Tue, 28 Jun 2005 16:25:47 +0000
(16:25 +0000)
committer
Michael Wallner
<mike@php.net>
Tue, 28 Jun 2005 16:25:47 +0000
(16:25 +0000)
http_request_api.c
patch
|
blob
|
history
diff --git
a/http_request_api.c
b/http_request_api.c
index aac05fd62f2937be778d4a75d089cd3868b01b28..24b1acc5a8bd3e0a3cd53f237f7cbbd5f916a158 100644
(file)
--- 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);
}
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 {
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 {
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 */
}
/* ssl */