After a graceful server is stopped, kept alive connections are left hanging. Each of them allow one more request to be processed, after that they are closed thanks to SetKeepAlivesEnabled(false). But that one request (per connection) can still screw things up if e.g. it sends to a channel that you already closed since supposedly the http server has stopped gracefully.
Solution
Graceful server should ignore requests received via kept alive connections after server shutdown.
Problem
After a graceful server is stopped, kept alive connections are left hanging. Each of them allow one more request to be processed, after that they are closed thanks to
SetKeepAlivesEnabled(false)
. But that one request (per connection) can still screw things up if e.g. it sends to a channel that you already closed since supposedly the http server has stopped gracefully.Solution
Graceful server should ignore requests received via kept alive connections after server shutdown.