]> err.no Git - varnish/commit
When we have some amount of a chunk header, but not all of it, we
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 19 Apr 2007 15:17:35 +0000 (15:17 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 19 Apr 2007 15:17:35 +0000 (15:17 +0000)
commit4fc9c40fccaa2feef9fbe08ea85d226ea53dc6ea
treec1bb34e6706fd8289815e483172205f60702fba2
parenta42b8c83a1c7ec256e94266f187744fa8c5e4949
When we have some amount of a chunk header, but not all of it, we
need to read more from the fd.  The semantics we _really_ want for
that read operation is "wait until at least one char is available,
then return as many as N to us".

This can be done with a combination of system calls, but it is likely
just as cheap to just read one char at a time, so we do that.

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