projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ups... memory leak
[yaz-moved-to-github.git]
/
src
/
seshigh.c
diff --git
a/src/seshigh.c
b/src/seshigh.c
index
48e0a4b
..
64854a6
100644
(file)
--- a/
src/seshigh.c
+++ b/
src/seshigh.c
@@
-25,6
+25,9
@@
* minimize memory allocation/deallocation during normal operation.
*
*/
* minimize memory allocation/deallocation during normal operation.
*
*/
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <limits.h>
#include <stdlib.h>
#include <limits.h>
#include <stdlib.h>
@@
-1907,7
+1910,7
@@
static void process_http_request(association *assoc, request *req)
keepalive = 1;
hres->version = "1.1";
}
keepalive = 1;
hres->version = "1.1";
}
- if (!keepalive)
+ if (!keepalive || !assoc->last_control->keepalive)
{
z_HTTP_header_add(o, &hres->headers, "Connection", "close");
assoc->state = ASSOC_DEAD;
{
z_HTTP_header_add(o, &hres->headers, "Connection", "close");
assoc->state = ASSOC_DEAD;