From: Mike Taylor Date: Wed, 24 Aug 2011 14:03:17 +0000 (+0100) Subject: Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/yaz X-Git-Tag: v4.2.10~1 X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=commitdiff_plain;h=84831e1cdf373b303ac548002ae944f0ae0cc1d5;hp=1dfd68dfcf6792062a242e78f7f93ebce3fa50d3 Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/yaz --- diff --git a/src/statserv.c b/src/statserv.c index 4a469de..0e6a3e8 100644 --- a/src/statserv.c +++ b/src/statserv.c @@ -1402,7 +1402,7 @@ int check_options(int argc, char **argv) fprintf(stderr, "Usage: %s [ -a -v " " -l -u -c -t " " -k -d -p -C certfile" - " -ziDST1 -m -w ... ]\n", me); + " -zKiDST1 -m -w ... ]\n", me); return 1; } } diff --git a/src/zoom-c.c b/src/zoom-c.c index 00158ec..dc52963 100644 --- a/src/zoom-c.c +++ b/src/zoom-c.c @@ -1612,6 +1612,8 @@ static void handle_http(ZOOM_connection c, Z_HTTP_Response *hres) c->reconnect_ok = 0; } } + else + c->reconnect_ok = 1; /* if the server closes anyway */ } } #endif @@ -1682,7 +1684,6 @@ static int do_read(ZOOM_connection c) #endif } } - c->reconnect_ok = 0; } return 1; }