X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;ds=sidebyside;f=uclient-http.c;h=574dc0177a9d99054095a4d4aaf1d47428c5d6b6;hb=cabb2e2641cea551d60b5b15f6cb1d092e6fbb03;hp=3ffb88c001dfc4bd8d7219e87b898a2a03af398a;hpb=2c8a8ace280de8e91d998ac5c7507f456132361b;p=project%2Fuclient.git 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); }