From: Adam Dickmeiss Date: Wed, 24 Aug 2011 13:35:00 +0000 (+0200) Subject: ZOOM: HTTP prepare for reconnect if server don't say so X-Git-Tag: v4.2.10~1^2 X-Git-Url: http://jsfdemo.indexdata.com/?a=commitdiff_plain;h=5fddafa991a00d90f1f9691458e026464b0fb213;hp=85e483aa6245bb163485b57f1f77719dc1cf24b8;p=yaz-moved-to-github.git ZOOM: HTTP prepare for reconnect if server don't say so In case the server HTTP/1.1 says Keep-Alive, we set the reconnect_ok to 1, if it closes anyway. Fixes #4555. --- 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; }