From: Felix Fietkau Date: Sat, 16 Jan 2016 22:26:32 +0000 (+0100) Subject: http: detect connect failure X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=cabb2e2641cea551d60b5b15f6cb1d092e6fbb03;p=oweals%2Fuclient.git http: detect connect failure Signed-off-by: Felix Fietkau --- diff --git a/uclient-http.c b/uclient-http.c index 3ffb88c..574dc01 100644 --- a/uclient-http.c +++ b/uclient-http.c @@ -736,6 +736,10 @@ static void uclient_notify_state(struct ustream *us) { struct uclient_http *uh = container_of(us, struct uclient_http, ufd.stream); + if (uh->ufd.stream.write_error) { + uclient_http_error(uh, UCLIENT_ERROR_CONNECT); + return; + } uclient_notify_eof(uh); }