[squid-dev] max_url : Pls, into squid.conf

Amos Jeffries squid3 at treenet.co.nz
Sat Jun 9 12:42:20 UTC 2018


On 09/06/18 22:35, babajaga wrote:
> I get a quite a few error msgs like
> urlParse: URL too large (9182 bytes)
> in cache.log
> I suspect, they are most likely from some ads, however, they make the web
> page appear slow to complete rendering.
> 
> Hesitating to patch defines.h directly, I kindly ask for
> an additional parameter in squid.conf
> 

This is not going to happen sorry. Unfortunately there are too many
points in the code allocating buffers for URLs which do not use the
MAX_URL definition.
For example; I am this very minute testing a patch to remove one more of
those bits of code I just found trying to stuff a 8KB URL into a 4KB
buffer :-(.

We have an ongoing project to remove the URL length limits from within
Squid. Hopefully that will resolve the issue as it progresses without
the need for a config option. If you are using Squid-3.5 you may see a
reduction of these messages from Squid-4.


PS. Squid is known to be one of the most lenient web agents. Most origin
servers and other proxies have smaller URL restrictions. So whatever
application is trying to use >9KB URLs is unlikely to work generally
over the Internet even if we resolve the Squid complaints.

Amos


More information about the squid-dev mailing list