Content Length Exceeded

July 15, 2011 • Customer Services       
Synopsis

When downloading a file from the Web you encounter a "Content Length Exceeded" message.

Article

By default, CensorNet imposes a maximum download file size of 32Mb. This is defined in the /etc/cnv4/cn_proxy.xml file:

<MaxRequestSize>33554432</MaxRequestSize>

In order for CensorNet to filter downloaded content, it must first read all the data into memory. If there was no limit, then potentially the RAM in the CensorNet server could be exhausted by a handful of users downloading large files. Therefore it is not recommended that you change the default limit of 32Mb.

Instead, you should use the File Type Filter, MIME Type Filter and Custom URL module to allow specific file types. These rules will not be subject to the 32Mb limit however you should create them wisely!

Related articles


Last modified on Fri, July 15, 2011 « Back