verless serve: Listen to OS interrupt signal and stop server
dominikbraun opened this issue · comments
Dominik Braun commented
At the moment, there's no graceful shutdown for the HTTP server started by verless serve
. The correct behavior would be to listen to the OS interrupt signal and perform a graceful shutdown by stopping the server explicitly.
With Go being a systems programming language, this is quite straight forward. Example:
The shutdown should be logged using the out
package.