Comments (5)
The issue is with how the async-session
crate implements Clone.
from axum-sessions.
It looks like v4 of async-session
will allow us to clone the Session
directly. This should mean we can drop the lock altogether. As soon as that lands, I'm planning to remove the custom extractor and lock.
from axum-sessions.
@j0lol there's active work in #50 to address.
from axum-sessions.
I'm also working on a new direction which addresses this among other things. Please see #56.
from axum-sessions.
I've released v0.1.0 of tower-sessions for folks who would like to try that.
This new crate does not use async-session and takes an approach to managing inner state that's inline with other tower middleware, like tower-cookies.
If you end up trying it, please let me know how it goes.
from axum-sessions.
Related Issues (20)
- Idea: Rework session service implementation to use the new axum 0.6 state pattern HOT 3
- Please consider to keep a changelog HOT 4
- How to retrieve a readable session in middleware? HOT 11
- Resist session id name fingerprinting by default HOT 2
- Rustdoc code doesn't compile due to minor import error HOT 2
- Session not saving when returning a redirect response HOT 7
- ReadableSession test utils HOT 1
- How to connect to redis or pg ? HOT 1
- Type-safe `Session` handles HOT 1
- Add a listener trait to listen to the creation, update and destruction of sessions HOT 3
- Implementing `MemoryStore` HOT 5
- Memory session is not persisted (on RPi Arm) HOT 3
- Deadlock when using WritableSession in middleware layer HOT 8
- Bug: data present in session, but `.get` returns `None` HOT 2
- WritableSession Load Forever HOT 4
- How to make one-shot session?
- Session expiration has no effect
- How to destroy then insert in the same route?
- How to persist postgres sessions between server restarts or load balanced servers? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from axum-sessions.