Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions plugins/experimental/slice/slice.cc
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ read_request(TSHttpTxn txnp, Config *const config)
if (!header.hasKey(SLICER_MIME_FIELD_INFO, SLICER_MIME_LEN_INFO)) {
// check if any previous plugin has monkeyed with the transaction status
TSHttpStatus const txnstat = TSHttpTxnStatusGet(txnp);
if (0 != static_cast<int>(txnstat)) {
DEBUG_LOG("txn status change detected (%d), skipping plugin\n", (int)txnstat);
if (TS_HTTP_STATUS_NONE != txnstat) {
DEBUG_LOG("txn status change detected (%d), skipping plugin\n", static_cast<int>(txnstat));
return false;
}

Expand Down
6 changes: 6 additions & 0 deletions plugins/experimental/statichit/statichit.cc
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,12 @@ TSRemapInit(TSRemapInterface * /* api_info */, char * /* errbuf */, int /* errbu
TSRemapStatus
TSRemapDoRemap(void *ih, TSHttpTxn rh, TSRemapRequestInfo *rri)
{
const TSHttpStatus txnstat = TSHttpTxnStatusGet(rh);
if (txnstat != TS_HTTP_STATUS_NONE && txnstat != TS_HTTP_STATUS_OK) {
VDEBUG("transaction status_code=%d already set; skipping processing", static_cast<int>(txnstat));
return TSREMAP_NO_REMAP;
}

StaticHitConfig *cfg = static_cast<StaticHitConfig *>(ih);

if (!cfg) {
Expand Down
6 changes: 6 additions & 0 deletions plugins/generator/generator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -732,6 +732,12 @@ TSRemapInit(TSRemapInterface * /* api_info */, char * /* errbuf */, int /* errbu
TSRemapStatus
TSRemapDoRemap(void * /* ih */, TSHttpTxn txn, TSRemapRequestInfo *rri)
{
const TSHttpStatus txnstat = TSHttpTxnStatusGet(txn);
if (txnstat != TS_HTTP_STATUS_NONE && txnstat != TS_HTTP_STATUS_OK) {
VDEBUG("transaction status_code=%d already set; skipping processing", static_cast<int>(txnstat));
return TSREMAP_NO_REMAP;
}

// Check if we should turn off the cache before doing anything else ...
CheckCacheable(txn, rri->requestUrl, rri->requestBufp);
TSHttpTxnHookAdd(txn, TS_HTTP_CACHE_LOOKUP_COMPLETE_HOOK, TxnHook);
Expand Down