Skip to content

Add method to allow retrieval of listener tag during pool configuration#21

Open
FinnitoProductions wants to merge 1 commit intomemcached:mainfrom
FinnitoProductions:patch-3
Open

Add method to allow retrieval of listener tag during pool configuration#21
FinnitoProductions wants to merge 1 commit intomemcached:mainfrom
FinnitoProductions:patch-3

Conversation

@FinnitoProductions
Copy link
Copy Markdown
Contributor

Allow for a route to retrieve its associated listener tag. This enables us to use the same route across multiple different listeners, and for it to execute execute custom configuration behavior depending on its associated listener.

Comment thread lib/routelib/routelib.lua
return id
end
}
ctx._listen_tag = tag
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this code missing something? I don't see where tag is coming from.

Copy link
Copy Markdown
Contributor Author

@FinnitoProductions FinnitoProductions Apr 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry -- missed a couple lines when I was copying over. I'll fix it now

@dormando
Copy link
Copy Markdown
Member

Could use a test. Looks like the best idea is a new test file with some -l specified. Want to give it a go?

@FinnitoProductions
Copy link
Copy Markdown
Contributor Author

Sure @dormando, I'll tackle it by EOD!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants