X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fseshigh.c;h=5d2df236d4b524a62c8781448da481298d942f10;hb=7b1bbfddfb6e9d68c645388e3279a4990a6592ef;hp=48e0a4bc3164fb778f647f146ab3ba8e81d4f62f;hpb=120720e0d9c4fb0bcb2dae04d925ce03c64ede68;p=yaz-moved-to-github.git diff --git a/src/seshigh.c b/src/seshigh.c index 48e0a4b..5d2df23 100644 --- a/src/seshigh.c +++ b/src/seshigh.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2010 Index Data + * Copyright (C) 1995-2011 Index Data * See the file LICENSE for details. */ /** @@ -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;