]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
- relaxed assertion regarding status of cached entry to a warning.
authorrousskov <>
Thu, 4 Jun 1998 22:09:37 +0000 (22:09 +0000)
committerrousskov <>
Thu, 4 Jun 1998 22:09:37 +0000 (22:09 +0000)
src/peer_digest.cc

index 066948974b0c8a3632f8bbb80cbe369d6141f1d9..923e05cf9ca8f46571af7191945d8c8818839f59 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: peer_digest.cc,v 1.36 1998/06/04 15:54:08 rousskov Exp $
+ * $Id: peer_digest.cc,v 1.37 1998/06/04 16:09:37 rousskov Exp $
  *
  * DEBUG: section 72    Peer Digest Routines
  * AUTHOR: Alex Rousskov
@@ -383,7 +383,12 @@ peerDigestSwapInHeaders(void *data, char *buf, ssize_t size)
        assert(fetch->entry->mem_obj->reply);
        if (!fetch->entry->mem_obj->reply->sline.status)
            httpReplyParse(fetch->entry->mem_obj->reply, buf);
-       assert(fetch->entry->mem_obj->reply->sline.status == HTTP_OK);
+       if (fetch->entry->mem_obj->reply->sline.status != HTTP_OK) {
+           debug(72, 1) ("peerDigestSwapInHeaders: %s status %d got cached!\n",
+               peer->host, fetch->entry->mem_obj->reply->sline.status);
+           peerDigestFetchFinish(fetch, buf, "internal status error");
+           return;
+       }
        fetch->offset += hdr_size;
        storeClientCopy(fetch->entry, size, fetch->offset,
            SM_PAGE_SIZE, buf,