Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi @yoshuawuyts / @No9,
I make this changes trying to fix the bug reported in #762, where the
cookie idisn't updated ( resent ) when the session is regenerated. I put thesessionbehind anArc::RwLock( std ) when we set theextand then in the request return theguardto don't change thereqapi. ( e.g req.session() / req.session_mut() ). It's ok to use the RwLock fromstd::sync?Also, I wonder if we still need the
RwLockand theArcin theSessionstruct ( https://github.com/http-rs/async-session/blob/main/src/session.rs#L60-L67 ) if we already are using a mutex ( from this pr ) on top to of that struct ?Open here as draft since I'm not sure if my approach is ok, and the code have this
clippywarnings that I'm not sure how to resolve.Thanks! any feedback is welcome :)