nokia / restful

A powerful RESTful framework for Go.
BSD 3-Clause "New" or "Revised" License
17 stars 14 forks source link

Server to restart #14

Closed Som-Som-CC closed 3 years ago

Som-Som-CC commented 3 years ago

In some cases you may want your server to drop all HTTP connection kept alive. A Restart function call may call Shutdown and ListenAndServe of http.Server, without RESTful Server's ListenAndServe returning.

That is likely to cause a bit of downtime. But may come handy when your server is not ready to handle requests. Such as when you make K8s readiness probe fail.