fetch: indicate an error if the connection was terminated prematurely
[project/uclient.git] / uclient.c
index fb45069..ab2d5b6 100644 (file)
--- a/uclient.c
+++ b/uclient.c
@@ -267,6 +267,7 @@ void __hidden uclient_backend_set_eof(struct uclient *cl)
 
 void __hidden uclient_backend_reset_state(struct uclient *cl)
 {
 
 void __hidden uclient_backend_reset_state(struct uclient *cl)
 {
+       cl->data_eof = false;
        cl->eof = false;
        cl->error_code = 0;
        uloop_timeout_cancel(&cl->timeout);
        cl->eof = false;
        cl->error_code = 0;
        uloop_timeout_cancel(&cl->timeout);