-
-
Notifications
You must be signed in to change notification settings - Fork 429
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 when handling simultaneously requests #775
Comments
Hello please show us: open a PR with a test that reproduces your issue. Thanks. |
Sure, I will do that. |
Hey so I have a fix, two actually! Short term: Longer term: I'll propose a patch that relies on a package-global But do validate your docs! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am facing an Data Race when I am sending simultaneously request against my service that is using
kin-openapi/openapi3filter/validate_request.go
Line 32 in e53fe38
The OpenApi specification is loaded by the service. Validation of the request against the spec is handle in a middleware before it is handle by the service itself, or reject if it does not adhere to the spec.
The race is occurring because of a write at
kin-openapi/openapi3/schema.go
Line 1973 in e53fe38
kin-openapi/openapi3/schema.go
Line 1608 in e53fe38
Out of curiosity I added a mutex in the schema struct and applied it in as below.
I am running it with v.0.114.0 at commit ecb06bc, but the issue is also present in older versions.
The text was updated successfully, but these errors were encountered: