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: 2 additions & 7 deletions proxy/ReverseProxy.cc
Original file line number Diff line number Diff line change
Expand Up @@ -104,20 +104,15 @@ response_url_remap(HTTPHdr *response_header, UrlRewrite *table)
//

/** Used to read the remap.config file after the manager signals a change. */
struct UR_UpdateContinuation;
using UR_UpdContHandler = int (UR_UpdateContinuation::*)(int, void *);
struct UR_UpdateContinuation : public Continuation {
int
file_update_handler(int /* etype ATS_UNUSED */, void * /* data ATS_UNUSED */)
{
(void)reloadUrlRewrite();
static_cast<void>(reloadUrlRewrite());
delete this;
return EVENT_DONE;
}
UR_UpdateContinuation(Ptr<ProxyMutex> &m) : Continuation(m)
{
SET_HANDLER((UR_UpdContHandler)&UR_UpdateContinuation::file_update_handler);
}
UR_UpdateContinuation(Ptr<ProxyMutex> &m) : Continuation(m) { SET_HANDLER(&UR_UpdateContinuation::file_update_handler); }
};

bool
Expand Down