From bb444fb3642afa6c8af6780be26edfeb05ff48d1 Mon Sep 17 00:00:00 2001 From: Adnan Maolood Date: Sun, 21 Feb 2021 11:04:28 -0500 Subject: server: Don't recover from panics --- handler.go | 7 ------- 1 file changed, 7 deletions(-) (limited to 'handler.go') diff --git a/handler.go b/handler.go index 5f3ee80..e17e9db 100644 --- a/handler.go +++ b/handler.go @@ -14,13 +14,6 @@ import ( // of the ServeGemini call. // // Handlers should not modify the provided Request. -// -// If ServeGemini panics, the server (the caller of ServeGemini) assumes that -// the effect of the panic was isolated to the active request. It recovers -// the panic, logs a stack trace to the server error log, and closes the -// network connection. To abort a handler so the client sees an interrupted -// response but the server doesn't log an error, panic with the value -// ErrAbortHandler. type Handler interface { ServeGemini(context.Context, ResponseWriter, *Request) } -- cgit v1.2.3