Henrik Nordstrom wrote:
> Unfortunately there seems to be a bug showing itself if you try to load
> a somewhat larger file (larger than 4KB -> assertion failure). Patch
> attached.
Oops. Forgot to attach the patch ;-)
Here is the patch.
/Henrik
Index: squid/src/mime.c
diff -u squid/src/mime.c:1.1.1.22 squid/src/mime.c:1.1.1.22.6.1
--- squid/src/mime.c:1.1.1.22 Sat Oct 31 14:36:10 1998
+++ squid/src/mime.c Thu Nov 19 23:42:33 1998
@@ -416,6 +416,7 @@
flags,
METHOD_GET);
assert(e != NULL);
+ storeSetPublicKey(e);
e->mem_obj->request = requestLink(urlParse(METHOD_GET, url));
httpReplyReset(e->mem_obj->reply);
httpReplySetHeaders(e->mem_obj->reply, 1.0, HTTP_OK, NULL,
@@ -426,7 +427,6 @@
while ((n = read(fd, buf, 4096)) > 0)
storeAppend(e, buf, n);
file_close(fd);
- storeSetPublicKey(e);
storeComplete(e);
storeTimestampsSet(e);
EBIT_SET(e->flags, ENTRY_SPECIAL);
Received on Thu Nov 19 1998 - 15:32:15 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:43:10 MST