Disable keep alive while shutting down
What does this MR do?
Currently while in the process of shutting down the Keep-Alive
is still active. From the http#Server.SetKeepAlivesEnabled documentation page:
SetKeepAlivesEnabled controls whether HTTP keep-alives are enabled. By default, keep-alives are always enabled. Only very resource-constrained environments or servers in the process of shutting down should disable them.
Since this would be the process of shutting down we should set the keep-alive to false.
TODO
-
I added the Changelog
trailer (e.g.Changelog: added
) to the commits that need to be included in the changelog -
I added unit tests or they are not required -
I added acceptance tests or they are not required -
I added documentation (or it's not required) -
I followed code review guidelines -
I followed Go Style guidelines