support for connection timeout
[project/uclient.git] / uclient-fetch.c
index 22f15c6feb801cdafe05b811ce076e56d22f9ea4..0617a02fea0bcfc711e7920b552befa52f39b6ae 100644 (file)
@@ -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;