projects
/
project
/
uclient.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fetch: indicate an error if the connection was terminated prematurely
[project/uclient.git]
/
uclient-fetch.c
diff --git
a/uclient-fetch.c
b/uclient-fetch.c
index
8dcb97b
..
6a27cde
100644
(file)
--- a/
uclient-fetch.c
+++ b/
uclient-fetch.c
@@
-151,6
+151,11
@@
static void init_request(struct uclient *cl)
static void eof_cb(struct uclient *cl)
{
+ if (!cl->data_eof) {
+ if (!quiet)
+ fprintf(stderr, "Connection reset prematurely\n");
+ error_ret = 4;
+ }
request_done(cl);
}