X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fseshigh.c;h=64854a68f86b695d9ba3881cc2d4428956dbb60d;hp=48e0a4bc3164fb778f647f146ab3ba8e81d4f62f;hb=5a3e6fa63181ab4afa8bce5f01c6de016a333334;hpb=120720e0d9c4fb0bcb2dae04d925ce03c64ede68 diff --git a/src/seshigh.c b/src/seshigh.c index 48e0a4b..64854a6 100644 --- a/src/seshigh.c +++ b/src/seshigh.c @@ -25,6 +25,9 @@ * minimize memory allocation/deallocation during normal operation. * */ +#if HAVE_CONFIG_H +#include +#endif #include #include @@ -1907,7 +1910,7 @@ static void process_http_request(association *assoc, request *req) 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;