Skip to content
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

Data race at swagger.go:39 #7

Closed
acim opened this issue Sep 22, 2018 · 4 comments
Closed

Data race at swagger.go:39 #7

acim opened this issue Sep 22, 2018 · 4 comments

Comments

@acim
Copy link

acim commented Sep 22, 2018

At first request I get data race, but further requests are fine.

| ==================
| WARNING: DATA RACE
| Write at 0x00c0003dbb00 by goroutine 31:
|   github.com/swaggo/http-swagger.wrapHandler.func1()
|       /go/pkg/mod/github.com/swaggo/http-swagger@v0.0.0-20180407044326-e030f0899372/swagger.go:39 +0x120
|   net/http.HandlerFunc.ServeHTTP()
|       /usr/local/go/src/net/http/server.go:1964 +0x51

r.Get("/swagger/*", httpSwagger.WrapHandler)

@joseluisq
Copy link

I have got the same problem. Any update?

@Jeeyb
Copy link

Jeeyb commented Oct 8, 2020

Same problem. Is it safe to use?

@ubogdan
Copy link
Contributor

ubogdan commented Sep 23, 2021

Please retest.

@acim
Copy link
Author

acim commented Sep 24, 2021

Looks good to me, but I don't have time to test it thoroughly, I am not on that project anymore.

@ubogdan ubogdan closed this as completed Apr 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants