3 ms·
So every unrelated request that happened to be currently processed is thrown away because of a rare corner case, and with no way to intercept shutdown and save
by dozzie 9y ago
So every unrelated request that happened to be currently processed is thrown
away because of a rare corner case, and with no way to intercept shutdown and
save state, flush buffers, or anything. Yes, totally right granulation.
Not to mention that you have just introduced a very complicated piece of
software to run a single daemon.
- Vendan 9y agoOr, you just catch the panic in a defer up the call chain, log the error, and then exit that goroutine. Like: https://golang.org/src/net/http/server.go#L1694 https://golang.org/src/net/http/server.go#L1694