-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix and optimize memory storage #2207
Fix and optimize memory storage #2207
Conversation
This fixes a TOCTOU problem between a mutex rlock and a mutex lock.
See the individual commits for details. |
Why is there a similar memory storage available here: https://github.com/gofiber/fiber/tree/e388e0edb3c6d4bdbfa41e8d533e1f4bd734404d/internal/storage/memory ? |
One is for testing the storage package Check the first comment line in the file |
@leonklingele can you pls apply this changes to the internal sorage/memory test adapter and later to https://github.com/gofiber/storage/blob/main/memory/memory.go#L116 |
This fixes a TOCTOU problem between a mutex rlock and a mutex lock.
@ReneWerner87 done. |
No description provided.