Wed Nov 24 22:33:23 CET 1999 Modified Files in squid/src client_side.c Squids processing of persistent connections failed on HEAD or IMS-HIT replies (bodyless, headers only) ----------------------------------------------------------------- Index: squid/src/client_side.c diff -u squid/src/client_side.c:1.1.1.46.2.4 squid/src/client_side.c:1.1.1.46.2.5 --- squid/src/client_side.c:1.1.1.46.2.4 Sun Nov 7 14:41:36 1999 +++ squid/src/client_side.c Wed Nov 24 22:33:21 1999 @@ -1784,7 +1784,7 @@ } else if ((done = clientCheckTransferDone(http)) != 0 || size == 0) { debug(33, 5) ("clientWriteComplete: FD %d transfer is DONE\n", fd); /* We're finished case */ - if (http->entry->mem_obj->reply->content_length < 0) { + if (httpReplyBodySize(http->request->method, http->entry->mem_obj->reply) < 0) { debug(33, 5) ("clientWriteComplete: closing, content_length < 0\n"); comm_close(fd); } else if (!done) { @@ -2717,7 +2717,7 @@ static int clientGotNotEnough(clientHttpRequest * http) { - int cl = http->entry->mem_obj->reply->content_length; + int cl = httpReplyBodySize(http->request->method, http->entry->mem_obj->reply); int hs = http->entry->mem_obj->reply->hdr_sz; assert(cl >= 0); if (http->out.offset < cl + hs)