diff options
| author | Adnan Maolood <[email protected]> | 2021-02-21 11:04:28 -0500 |
|---|---|---|
| committer | Adnan Maolood <[email protected]> | 2021-02-21 11:04:45 -0500 |
| commit | bb444fb3642afa6c8af6780be26edfeb05ff48d1 (patch) | |
| tree | b3ef6302307c7eb19628476f9afc4c9df9feac6e /handler.go | |
| parent | fs: Use better error messages (diff) | |
| download | go-gemini-bb444fb3642afa6c8af6780be26edfeb05ff48d1.tar.xz go-gemini-bb444fb3642afa6c8af6780be26edfeb05ff48d1.zip | |
server: Don't recover from panics
Diffstat (limited to 'handler.go')
| -rw-r--r-- | handler.go | 7 |
1 files changed, 0 insertions, 7 deletions
@@ -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) } |