diff options
Diffstat (limited to 'uclient-http.c')
-rw-r--r-- | uclient-http.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); } |