]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
authorAmos Jeffries <squid3@treenet.co.nz>
Sun, 2 Aug 2009 10:59:16 +0000 (22:59 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 2 Aug 2009 10:59:16 +0000 (22:59 +1200)
Bug 2732: reply_body_max_size smaller than error page loops infinitely until out of memory

src/client_side_reply.cc

index bfb1eb84311bbfb5a3190e6ffa61a40a2dae882e..541abc7ed206df227edbbc476fcda8002220e364 100644 (file)
@@ -1682,6 +1682,7 @@ clientReplyContext::processReplyAccess ()
     }
 
     if (http->isReplyBodyTooLarge(reply->content_length)) {
+        http->logType = LOG_TCP_DENIED_REPLY;
         ErrorState *err =
             clientBuildError(ERR_TOO_BIG, HTTP_FORBIDDEN, NULL,
                              http->getConn() != NULL ? &http->getConn()->peer.sin_addr : &no_addr,