Re: Corrupted (premature eof) digest ....

From: Alex Rousskov <rousskov@dont-contact.us>
Date: Thu, 19 Nov 1998 10:13:10 -0700 (MST)

On Thu, 19 Nov 1998, Alex Rousskov sent the wrong attachment! I am lucky that
file did not have my credit card numbers or something... :)

The correct patch is below.

Sorry.

Index: peer_digest.c
===================================================================
RCS file: /surf1/CVS/squid/src/peer_digest.c,v
retrieving revision 1.56.4.1
diff -u -r1.56.4.1 peer_digest.c
--- peer_digest.c 1998/10/26 23:11:17 1.56.4.1
+++ peer_digest.c 1998/11/19 17:02:03
@@ -334,6 +334,12 @@
             /* requestUnlink(r); */
             /* fetch->entry->mem_obj->request = NULL; */
             assert(fetch->entry->mem_obj);
+ /* kludge to make peerDigestFetchFinish think that we
+ * fetched the whole thing while we are reusing old digest */
+ if (fetch->peer->digest.cd) {
+ assert(!fetch->mask_offset);
+ fetch->mask_offset = peer->digest.cd->mask_size;
+ }
         } else if (status == HTTP_OK) {
             /* get rid of old entry if any */
             if (fetch->old_entry) {
Received on Thu Nov 19 1998 - 10:11:52 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:43:10 MST