aboutsummaryrefslogtreecommitdiff
path: root/docs/curl.1
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2013-04-30 14:23:39 +0000
committerDaniel Stenberg <daniel@haxx.se>2013-07-14 23:04:05 +0200
commitd8c04909fa50e87bba58311dd8feecaa94508f4b (patch)
treedc2cd13dd737e087906275d2ab73da190fbea777 /docs/curl.1
parentc0a7a98aee6e0be77949f310ea81c253e3d1c6c5 (diff)
src/tool: allow timeouts to accept decimal values
Implement wrappers around strtod to convert the user argument to a double with sane error checking. Use this to allow --max-time and --connect-timeout to accept decimal values instead of strictly integers. The manpage is updated to make mention of this feature and, additionally, forewarn that the actual timeout of the operation can vary in its precision (particularly as the value increases in its decimal precision).
Diffstat (limited to 'docs/curl.1')
-rw-r--r--docs/curl.19
1 files changed, 7 insertions, 2 deletions
diff --git a/docs/curl.1 b/docs/curl.1
index 0d0e12f91..9e1a6883b 100644
--- a/docs/curl.1
+++ b/docs/curl.1
@@ -230,7 +230,9 @@ server sends an unsupported encoding, curl will report an error.
.IP "--connect-timeout <seconds>"
Maximum time in seconds that you allow the connection to the server to take.
This only limits the connection phase, once curl has connected this option is
-of no more use. See also the \fI-m, --max-time\fP option.
+of no more use. Since 7.32.0, this option accepts decimal values, but the
+actual timeout will decrease in accuracy as the specified timeout increases in
+decimal precision. See also the \fI-m, --max-time\fP option.
If this option is used several times, the last one will be used.
.IP "--create-dirs"
@@ -813,7 +815,10 @@ Basic authentication).
.IP "-m, --max-time <seconds>"
Maximum time in seconds that you allow the whole operation to take. This is
useful for preventing your batch jobs from hanging for hours due to slow
-networks or links going down. See also the \fI--connect-timeout\fP option.
+networks or links going down. Since 7.32.0, this option accepts decimal
+values, but the actual timeout will decrease in accuracy as the specified
+timeout increases in decimal precision. See also the \fI--connect-timeout\fP
+option.
If this option is used several times, the last one will be used.
.IP "--mail-auth <address>"