$(COMMON_LIBS)
tests_testSBuf_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
+ tests_testSBufList_SOURCES= \
+ tests/testSBufList.h \
+ tests/testSBufList.cc \
+ tests/testMain.cc \
+ $(SBUF_SOURCE) \
+ SBufList.h \
+ SBufList.cc \
+ SBufAlgos.h \
+ SBufDetailedStats.h \
+ tests/stub_SBufDetailedStats.cc \
+ SBufStream.h \
+ tests/stub_time.cc \
+ mem.cc \
+ tests/stub_debug.cc \
+ tests/stub_event.cc \
+ tests/stub_fatal.cc \
+ tests/stub_HelperChildConfig.cc \
+ tests/stub_cache_cf.cc \
+ tests/stub_cache_manager.cc \
++ tests/stub_store.cc \
+ tests/stub_store_stats.cc \
+ tests/stub_tools.cc \
+ SquidString.h \
+ String.cc \
+ tests/stub_wordlist.cc \
+ tests/stub_MemBuf.cc
+ nodist_tests_testSBufList_SOURCES=$(TESTSOURCES)
+ tests_testSBufList_LDFLAGS = $(LIBADD_DL)
+ tests_testSBufList_LDADD=\
+ $(SQUID_CPPUNIT_LIBS) \
+ $(SQUID_CPPUNIT_LA) \
+ $(COMPAT_LIB) \
+ libsquid.la \
+ ip/libip.la \
+ mgr/libmgr.la \
+ base/libbase.la \
+ $(top_builddir)/lib/libmiscutil.la \
+ $(COMMON_LIBS)
+ tests_testSBufList_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
+
tests_testConfigParser_SOURCES = \
ClientInfo.h \
Mem.h \
// give entry the reply because haveParsedReplyHeaders() expects it there
entry->replaceHttpReply(theFinalReply, false); // but do not write yet
haveParsedReplyHeaders(); // update the entry/reply (e.g., set timestamps)
- if (EBIT_TEST(entry->flags, ENTRY_CACHABLE) && blockCaching())
++ if (!EBIT_TEST(entry->flags, RELEASE_REQUEST) && blockCaching())
+ entry->release();
entry->startWriting(); // write the updated entry to store
return theFinalReply;
void triggerInitialStoreRead();
void sendClientOldEntry();
void purgeAllCached();
+ void forgetHit();
+ bool blockedHit() const;
void sendBodyTooLargeError();
void sendPreconditionFailedError();
break;
case LFT_TIME_START: {
- int precision = fmt->widthMax >=0 ? fmt->widthMax :3;
- snprintf(tmp, sizeof(tmp), "%0*" PRId64 ".%0*d", fmt->zero && (fmt->widthMin - precision - 1 >= 0) ? fmt->widthMin - precision - 1 : 0, (int64_t)al->cache.start_time.tv_sec, precision, (int)(al->cache.start_time.tv_usec / fmt->divisor));
+ int precision = fmt->widthMax >=0 ? fmt->widthMax : 3;
+ snprintf(tmp, sizeof(tmp), "%0*" PRId64 ".%0*d", fmt->zero && (fmt->widthMin - precision - 1 >= 0) ? fmt->widthMin - precision - 1 : 0, static_cast<int64_t>(al->cache.start_time.tv_sec), precision, (int)(al->cache.start_time.tv_usec / fmt->divisor));
out = tmp;
}
- break;
+ break;
case LFT_TIME_TO_HANDLE_REQUEST:
outint = al->cache.msec;