Skip to content

Disable keep alive while shutting down

Filip Aleksic requested to merge disable-keep-alive-while-shutting-down into master

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

Merge request reports