-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
env
github.com/HikoQiu/go-eureka-client/eureka v0.0.0-20200428035747-ac92e3f91f92
Background
- I have a go application, start an HTTPServer, and set eureka client to Run()
- handle signal to graceful shutdown HTTPServer
What's Unexpected
application exit when eureka client execute handleSignal
the application does not have a chance to execute graceful shutdown for HTTPServer
what's Expected
both graceful exit codes can be executed.
Why
go-eureka-client/eureka/client.go
Line 322 in ac92e3f
| os.Exit(0) |
Discussion
what if we remove that line: os.Exit(0)
Metadata
Metadata
Assignees
Labels
No labels