minor changes
This commit is contained in:
2
main.go
2
main.go
@@ -77,7 +77,7 @@ func main() {
|
||||
|
||||
// shutdown
|
||||
// known issue: sse blocks shutdown if a client is still connected
|
||||
context, cancel := context.WithTimeout(context.Background(), 5*time.Second)
|
||||
context, cancel := context.WithTimeout(context.Background(), 2*time.Second)
|
||||
defer cancel()
|
||||
server.Shutdown(context)
|
||||
serverSecure.Shutdown(context)
|
||||
|
||||
Reference in New Issue
Block a user