[Bug 223065] INDEX file truncated from time to time

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Jan 7 17:51:35 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223065

--- Comment #10 from Wolfram Schneider <wosch at FreeBSD.org> ---
As far as I understand varnish:

the front-end has a fast connection to the backend. The backend delivers the
data fast (>1GBit/s) Varnish needs to allocate memory to cache the data from
the backend. If the malloc() call fails, varnish may return truncated results.

If we know the exact file size in advance, then your client will report an
error message due the mismatch between the content-length and the received
bytes. For dynamic content, you will get rotten results - that's horrible.

I do not understand why varnish fails to cache a 2MB "big" file. The machine
has several GB RAM reserved for varnish.

I would expect that in case of a malloc() failure varnish fails back to
streaming, and trash the dirty cache. Or break the TCP connection, and do a
reset so the client get an error message on the lower level and can handle it
(retry).

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-ports-bugs mailing list