FilterChain for each Session #75
Labels
kind/design
Proposal discussing new features / fixes and how they should be implemented
kind/feature
New feature or request
Context: #69 (comment)
If you need to keep state per-session in a filter, let's create and store individual FilterChain for each Session.
We're almost all of the way there - https://github.com/googleforgames/quilkin/blob/master/src/server/sessions.rs#L41 - we can likely drop the Arc requirement from the constructor and ensure the session gets it's own owned FilterChain.
Question
Can we think of a Filter than might need to retain global state, rather than per-session, and if so, how would we manage that?
The text was updated successfully, but these errors were encountered: