From: rousskov <> Date: Wed, 3 Jun 1998 03:17:56 +0000 (+0000) Subject: - Allow "seen" offset to be greater than "inmem_hi" for pending store entries. X-Git-Tag: SQUID_3_0_PRE1~3198 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2a503f8738220aa5ac3746992ac1d49232e134d9;p=thirdparty%2Fsquid.git - Allow "seen" offset to be greater than "inmem_hi" for pending store entries. This change allows store clients to "skip" incoming data regardless of current inmem_hi value. Used in range request processing. --- diff --git a/src/store_client.cc b/src/store_client.cc index 64e5c06f9c..62a3267279 100644 --- a/src/store_client.cc +++ b/src/store_client.cc @@ -172,7 +172,7 @@ storeClientCopy2(StoreEntry * e, store_client * sc) sc->flags.disk_io_pending = 0; sc->callback = NULL; callback(sc->callback_data, sc->copy_buf, 0); - } else if (e->store_status == STORE_PENDING && sc->seen_offset == mem->inmem_hi) { + } else if (e->store_status == STORE_PENDING && sc->seen_offset >= mem->inmem_hi) { /* client has already seen this, wait for more */ debug(20, 3) ("storeClientCopy2: Waiting for more\n"); } else if (sc->copy_offset >= mem->inmem_lo && sc->copy_offset < mem->inmem_hi) {