]> git.ipfire.org Git - thirdparty/squid.git/commit
With new storeClientCopy() scheme, the client side might re-request
authorwessels <>
Fri, 17 Oct 1997 11:20:18 +0000 (11:20 +0000)
committerwessels <>
Fri, 17 Oct 1997 11:20:18 +0000 (11:20 +0000)
commit711982d847e7646dc09878f0508847a32e95f88a
treedf1fa0a9fd9c1e702fe262207b4fb78d909ee3a6
parent88eb862c78dec59611fd51b6c9459707fcc3762c
With new storeClientCopy() scheme, the client side might re-request
some data which has already been read from disk (if it didn't get
the full HTTP headers).  That means we need to put lseek() back
in; ugh.  New fde->disk.offset tracks the current file offset.

Fixed the 'double-read' bug found by Alex Rousskov.  Always
make the read callback after each read() call.  Don't wait
for the read buffer to full or for EOF.

This means dread_ctrl->offset isn't needed as it was being used
because there will only be one read() per dread_ctrl.  ->offset
now becomes the offset requested from the store module, and we
seek if dread_ctrl->offset != fde->disk.offset.
src/disk.cc
src/store.cc
src/structs.h