projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85e483a
)
ZOOM: HTTP prepare for reconnect if server don't say so
author
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 24 Aug 2011 13:35:00 +0000
(15:35 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 24 Aug 2011 13:35:00 +0000
(15:35 +0200)
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
patch
|
blob
|
history
diff --git
a/src/zoom-c.c
b/src/zoom-c.c
index
00158ec
..
dc52963
100644
(file)
--- 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;
}