--------------------- PatchSet 4780 Date: 2002/08/25 12:37:47 Author: rbcollins Branch: esi Tag: (none) Log: Henrik's fix to persistent connections Members: src/client_side.c:1.65.2.16->1.65.2.17 Index: squid/src/client_side.c =================================================================== RCS file: /cvsroot/squid-sf//squid/src/client_side.c,v retrieving revision 1.65.2.16 retrieving revision 1.65.2.17 diff -u -r1.65.2.16 -r1.65.2.17 --- squid/src/client_side.c 18 Aug 2002 11:09:22 -0000 1.65.2.16 +++ squid/src/client_side.c 25 Aug 2002 12:37:47 -0000 1.65.2.17 @@ -1,6 +1,6 @@ /* - * $Id: client_side.c,v 1.65.2.16 2002/08/18 11:09:22 rbcollins Exp $ + * $Id: client_side.c,v 1.65.2.17 2002/08/25 12:37:47 rbcollins Exp $ * * DEBUG: section 33 Client-side Routines * AUTHOR: Duane Wessels @@ -400,14 +400,19 @@ { request_t *request = http->request; const HttpHeader *req_hdr = &request->header; + debug(33, 3) ("clientSetKeepaliveFlag: http_ver = %d.%d\n", request->http_ver.major, request->http_ver.minor); debug(33, 3) ("clientSetKeepaliveFlag: method = %s\n", RequestMethodStr[request->method]); if (!Config.onoff.client_pconns) request->flags.proxy_keepalive = 0; - else if (httpMsgIsPersistent(request->http_ver, req_hdr)) - request->flags.proxy_keepalive = 1; + else { + http_version_t http_ver; + httpBuildVersion(&http_ver, 1, 0); /* we are HTTP/1.0, no matter what the client requests... */ + if (httpMsgIsPersistent(http_ver, req_hdr)) + request->flags.proxy_keepalive = 1; + } } static int