X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fseshigh.c;h=378b1305a4a58e237d76ef954d21c0e43c647fd0;hb=31c5e5fa92f5980deac3c042b765e4148329cd1b;hp=48e0a4bc3164fb778f647f146ab3ba8e81d4f62f;hpb=120720e0d9c4fb0bcb2dae04d925ce03c64ede68;p=yaz-moved-to-github.git diff --git a/src/seshigh.c b/src/seshigh.c index 48e0a4b..378b130 100644 --- a/src/seshigh.c +++ b/src/seshigh.c @@ -1907,7 +1907,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;