We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The data race "fixed" in https://github.com/gofiber/fiber/pull/2368/files wasn't fixed at all.
Instead we should do something à la:
func (s *Storage) ConnLocked(fn func(map[string]entry)) { s.mux.Lock() defer s.mux.Unlock() fn(s.db) }
No response
The text was updated successfully, but these errors were encountered:
🩹 Fix: race condition in memory storage
f05dd94
This commit updates `Conn` method of memory storage to fix race conditions. Fixes: gofiber#2400
Hey folks
I've raised a PR #2669 to fix this.
It also adds a unit test to check for race condition, which would otherwise fail in older implementation or without using lock.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Feature Description
The data race "fixed" in https://github.com/gofiber/fiber/pull/2368/files wasn't fixed at all.
Instead we should do something à la:
Additional Context (optional)
No response
Code Snippet (optional)
No response
Checklist:
The text was updated successfully, but these errors were encountered: