-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
race in handleShutdown #1781
Labels
Comments
Tested this. Moving the |
fredbi
added a commit
to fredbi/go-swagger
that referenced
this issue
Nov 18, 2018
* fixes go-swagger#1781 Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
fredbi
added a commit
to fredbi/go-swagger
that referenced
this issue
Nov 19, 2018
* fixes go-swagger#1781 Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
fredbi
added a commit
to fredbi/go-swagger
that referenced
this issue
Nov 22, 2018
* fixes go-swagger#1781 Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
fredbi
added a commit
to fredbi/go-swagger
that referenced
this issue
Nov 28, 2018
* fixes go-swagger#1781 Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
fredbi
added a commit
to fredbi/go-swagger
that referenced
this issue
Nov 28, 2018
* fixes go-swagger#1781 Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
fredbi
added a commit
that referenced
this issue
Nov 28, 2018
* fixes #1781 Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem statement
When running the server with
-race
flag, and sending the intrerupt signal CTRL+C, an error occursSwagger specification
https://github.com/bgadrian/pseudoservice/blob/master/swagger.yaml
Steps to reproduce
Simple HTTP server, on port 8080, run local.
go run -race main.go CTRL+C
Environment
swagger version: 0.17.2
go version: 1.11.1
OS: Ubuntu 17
race:
Read: servers := *serversPtr
Write: servers = append(servers, httpServer)
2nd race:
Read: server := servers[i]
Write: servers = append(servers, httpServer)
The text was updated successfully, but these errors were encountered: