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
fatal error: concurrent map writes
I test gin-timeout, and it's ok
https://github.com/vearne/gin-timeout/blob/master/timeout.go#L33
cp := *c //nolint: govet c.Abort() // sync.Pool buffer := buffpool.GetBuff() tw := &TimeoutWriter{body: buffer, ResponseWriter: cp.Writer, h: make(http.Header)} tw.TimeoutOptions = defaultOptions // .... cp.Writer = tw
So, Is it caused by gin reusing the ctx object?
gin
ctx
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I test gin-timeout, and it's ok
https://github.com/vearne/gin-timeout/blob/master/timeout.go#L33
So, Is it caused by
gin
reusing thectx
object?The text was updated successfully, but these errors were encountered: