3 ms·
I probably misunderstand what you wrote. Because I think a (wrapped) panic will only result in crashing the one request that caused it? For example Gin provide
by Gys 3y ago
I probably misunderstand what you wrote. Because I think a (wrapped) panic will only result in crashing the one request that caused it?
For example Gin provides a middleware wrapper for handling panics:
CustomRecoveryWithWriter returns a middleware for a given writer that recovers from any panics and calls the provided handle func to handle it.
(https://github.com/gin-gonic/gin/blob/master/recovery.go https://github.com/gin-gonic/gin/blob/master/recovery.go)
- deleted 3y ago[deleted]
- lawrjone 3y agoThe post-mortem we published about this outage explains the details of how this crashed the binary. It gives some code examples and explanations that should clear this up: https://incident.io/blog/intermittent-downtime#mitigation-1-ensuring-we-handle-message-panics https://incident.io/blog/intermittent-downtime#mitigation-1-... ^ link should go to the relevant section
- Gys 3y agoWill have a look, thanks!