From 9ceca0a12166cefdf07aedc3c187fdd2f72fdec8 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 7 May 2014 23:21:52 +0200 Subject: fetch: indicate an error if the connection was terminated prematurely Signed-off-by: Felix Fietkau --- uclient.c | 1 + 1 file changed, 1 insertion(+) (limited to 'uclient.c') diff --git a/uclient.c b/uclient.c index fb45069..ab2d5b6 100644 --- 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) { + cl->data_eof = false; cl->eof = false; cl->error_code = 0; uloop_timeout_cancel(&cl->timeout); -- cgit v1.2.1