Skip to content
Merged
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
9 changes: 8 additions & 1 deletion plugins/esi/combo_handler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ unsigned MaxFileCount = DEFAULT_MAX_FILE_COUNT;
// We hardcode "immutable" here because it's not yet defined in the ATS API
#define HTTP_IMMUTABLE "immutable"

int arg_idx;
int arg_idx = -1;
static string SIG_KEY_NAME;
static vector<string> HEADER_ALLOWLIST;

Expand Down Expand Up @@ -1236,6 +1236,13 @@ TSRemapInit(TSRemapInterface *api_info, char *errbuf, int errbuf_size)
return TS_ERROR;
}

if (TSUserArgIndexReserve(TS_USER_ARGS_TXN, DEBUG_TAG, "will save plugin-enable flag here", &arg_idx) != TS_SUCCESS) {
LOG_ERROR("failed to reserve private data slot");
return TS_ERROR;
} else {
LOG_DEBUG("txn_arg_idx: %d", arg_idx);
}

TSDebug(DEBUG_TAG, "%s plugin's remap part is initialized", DEBUG_TAG);

return TS_SUCCESS;
Expand Down