Varnish Logging

Poul-Henning Kamp phk at
Fri Dec 7 12:45:01 CET 2007

In message <475915CD.2010900 at>, Saint-Genest Gwenael writes:
>Rich Christiansen wrote:

>> transfered.  We deal a lot with large files (30MB-100MB), so many of our
>> file transfers are cut short.  We need to be able to log exactly how
>> many bytes were actually transfered.  Is this possible?
>                if (WRK_Flush(w) == 0 &&
>                    sendfile(*w->wfd, fd, &off, len) != len)
>                        w->werr++;
>The number of bytes copied (returned by sendfile) is not saved :(
>With a little patch you can save this value and use it for statistics.

Please open a ticket for this, so we get the number properly integrated
in the statistics.

Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

More information about the varnish-misc mailing list