X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fseshigh.c;h=378b1305a4a58e237d76ef954d21c0e43c647fd0;hp=48e0a4bc3164fb778f647f146ab3ba8e81d4f62f;hb=f0d23836907782b75c45f9572ff0df25561b2cf8;hpb=e31c087cd8187e3568f4a7af4203672cc5f67118 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;