From: serassio <> Date: Sun, 11 Sep 2005 01:31:31 +0000 (+0000) Subject: Bug #1368: assertion failed: store.c:523: "e->store_status == X-Git-Tag: SQUID_3_0_PRE4~640 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=b66315e48c847e5f28ac97fd76d8d585dd64774c;p=thirdparty%2Fsquid.git Bug #1368: assertion failed: store.c:523: "e->store_status == STORE_PENDING" on certain aborted requests Forward port of 2.5 patch. --- diff --git a/src/cache_manager.cc b/src/cache_manager.cc index 2aecaa823e..7ac00de4e8 100644 --- a/src/cache_manager.cc +++ b/src/cache_manager.cc @@ -1,6 +1,6 @@ /* - * $Id: cache_manager.cc,v 1.32 2005/09/10 16:03:52 serassio Exp $ + * $Id: cache_manager.cc,v 1.33 2005/09/10 19:31:31 serassio Exp $ * * DEBUG: section 16 Cache Manager Objects * AUTHOR: Duane Wessels @@ -313,8 +313,7 @@ cachemgrStart(int fd, HttpRequest * request, StoreEntry * entry) a = cachemgrFindAction(mgr->action); assert(a != NULL); - if (a->flags.atomic) - storeBuffer(entry); + storeBuffer(entry); { HttpVersion version(1,0); @@ -332,10 +331,10 @@ cachemgrStart(int fd, HttpRequest * request, StoreEntry * entry) a->handler(entry); - if (a->flags.atomic) { - storeBufferFlush(entry); + storeBufferFlush(entry); + + if (a->flags.atomic) entry->complete(); - } cachemgrStateFree(mgr); } diff --git a/src/ftp.cc b/src/ftp.cc index 45762f9ce9..d3b7100398 100644 --- a/src/ftp.cc +++ b/src/ftp.cc @@ -1,6 +1,6 @@ /* - * $Id: ftp.cc,v 1.365 2005/09/10 16:03:52 serassio Exp $ + * $Id: ftp.cc,v 1.366 2005/09/10 19:31:31 serassio Exp $ * * DEBUG: section 9 File Transfer Protocol (FTP) * AUTHOR: Harvest Derived @@ -473,7 +473,6 @@ ftpListingStart(FtpStateData * ftpState) char *dirup; int i, j, k; const char *title = ftpState->title_url.buf(); - storeBuffer(e); storeAppendPrintf(e, "\n"); storeAppendPrintf(e, "\n", version_string); @@ -548,7 +547,6 @@ ftpListingStart(FtpStateData * ftpState) storeAppendPrintf(e, "
\n");
dirup = ftpHtmlifyListEntry("", ftpState);
storeAppend(e, dirup, strlen(dirup));
- storeBufferFlush(e);
ftpState->flags.html_header_sent = 1;
}
@@ -572,7 +570,6 @@ ftpListingFinish(FtpStateData * ftpState)
getMyHostname(),
visible_appname_string);
storeAppendPrintf(e, "