Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix http server graceful shutdown (#571)
as golang's http doc point out ``` ListenAndServe always returns a non-nil error. After Shutdown or Close ``` `log.Fatal(httpSrv.ListenAndServe())` will cause server exit immediately with code 1, without waiting 5s for graceful shutdown.
- Loading branch information