summaryrefslogtreecommitdiff
path: root/uclient-fetch.c
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2015-01-16 11:21:02 +0100
committerFelix Fietkau <nbd@openwrt.org>2015-01-18 01:41:26 +0100
commit6c222d0646fa7c07be96d729009916d5af295332 (patch)
tree3e9ea61840825fee44d1fd562cd08ca6b1eceb69 /uclient-fetch.c
parent71ca932167085f313711d4259393c5f3441cc3a8 (diff)
downloaduclient-6c222d0646fa7c07be96d729009916d5af295332.tar.gz
support for connection timeout
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Diffstat (limited to 'uclient-fetch.c')
-rw-r--r--uclient-fetch.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/uclient-fetch.c b/uclient-fetch.c
index 22f15c6..0617a02 100644
--- a/uclient-fetch.c
+++ b/uclient-fetch.c
@@ -194,6 +194,10 @@ static void handle_uclient_error(struct uclient *cl, int code)
type = "Connection failed";
error_ret = 4;
break;
+ case UCLIENT_ERROR_TIMEDOUT:
+ type = "Connection timed out";
+ error_ret = 4;
+ break;
case UCLIENT_ERROR_SSL_INVALID_CERT:
type = "Invalid SSL certificate";
ignore = !verify;