From 5fddafa991a00d90f1f9691458e026464b0fb213 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 24 Aug 2011 15:35:00 +0200 Subject: [PATCH] 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. --- src/zoom-c.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 1.7.10.4