]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
- Allow "seen" offset to be greater than "inmem_hi" for pending store entries.
authorrousskov <>
Wed, 3 Jun 1998 03:17:56 +0000 (03:17 +0000)
committerrousskov <>
Wed, 3 Jun 1998 03:17:56 +0000 (03:17 +0000)
  This change allows store clients to "skip" incoming data regardless of
  current inmem_hi value. Used in range request processing.

src/store_client.cc

index 64e5c06f9cb52ac91609e43105ec9d13231624d9..62a3267279c4702878d92238c107cb5a2bf2f20e 100644 (file)
@@ -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) {