]> err.no Git - varnish/commit
Put three memory allocation hints into heritage:
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 10 Jul 2006 08:10:30 +0000 (08:10 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 10 Jul 2006 08:10:30 +0000 (08:10 +0000)
commita64cce225f7a08d29b99ce0a2facf8fd301712a5
tree81f1120caad709d658039aaf847d1654dd093dfe
parentee72e4f76a0cb979e3966ca97b8fbaf8cd72dd4c
Put three memory allocation hints into heritage:

mem_http_1_line (512)
Maximum length of the reqeust/response line of a HTTP message
There is no point in filling the entire buffer with junk if
we get a preposterously long first line.
mem_http_header (4096)
Maximum length of entire HTTP header.  If we overflow this
we return 400.
mem_workspace (currently 0)
In the future this will be the space we use for constructing
headers to send and edits done from VCL.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@392 d4fa192b-c00b-0410-8231-f00ffab90ce4
varnish-cache/bin/varnishd/heritage.h
varnish-cache/bin/varnishd/varnishd.c