From 438fc1e324c5758438a7b52bbe5487aa60a37ded Mon Sep 17 00:00:00 2001 From: wessels <> Date: Tue, 18 Nov 1997 08:02:37 +0000 Subject: [PATCH] Replaced gross EBIT_SET(..., DELAY_SENDING) and EBIT_CLR(..., DELAY_SENDING) with storeBuffer() and storeBufferFlush(). --- src/ftp.cc | 14 +++++++++----- src/gopher.cc | 16 ++++++++-------- src/protos.h | 2 ++ src/stat.cc | 10 +++++----- src/store.cc | 17 ++++++++++++++++- 5 files changed, 40 insertions(+), 19 deletions(-) diff --git a/src/ftp.cc b/src/ftp.cc index 1cfeb4edbc..6ff24389d2 100644 --- a/src/ftp.cc +++ b/src/ftp.cc @@ -1,5 +1,5 @@ /* - * $Id: ftp.cc,v 1.170 1997/11/18 00:48:23 wessels Exp $ + * $Id: ftp.cc,v 1.171 1997/11/18 01:02:37 wessels Exp $ * * DEBUG: section 9 File Transfer Protocol (FTP) * AUTHOR: Harvest Derived @@ -258,6 +258,7 @@ ftpListingStart(FtpStateData * ftpState) { StoreEntry *e = ftpState->entry; wordlist *w; + storeBuffer(e); storeAppendPrintf(e, "\n", version_string); storeAppendPrintf(e, "\n", mkrfc1123(squid_curtime)); @@ -281,6 +282,7 @@ ftpListingStart(FtpStateData * ftpState) storeAppendPrintf(e, "FTP Directory: %s\n", ftpState->title_url); storeAppendPrintf(e, "\n"); storeAppendPrintf(e, "
\n"); + storeBufferFlush(e); EBIT_SET(ftpState->flags, FTP_HTML_HEADER_SENT); } @@ -288,6 +290,7 @@ static void ftpListingFinish(FtpStateData * ftpState) { StoreEntry *e = ftpState->entry; + storeBuffer(e); storeAppendPrintf(e, "\n"); storeAppendPrintf(e, "