diff options
| author | Adnan Maolood <[email protected]> | 2021-02-20 00:49:21 -0500 |
|---|---|---|
| committer | Adnan Maolood <[email protected]> | 2021-02-20 00:49:21 -0500 |
| commit | 5922cff2e52f0b13583aa57550569912903863d9 (patch) | |
| tree | 6e1cfb1137affdc475a4e8cb3056126a0dd146e0 /gemini.go | |
| parent | server: Clarify GetCertificate documentation (diff) | |
| download | go-gemini-5922cff2e52f0b13583aa57550569912903863d9.tar.xz go-gemini-5922cff2e52f0b13583aa57550569912903863d9.zip | |
Implement TimeoutHandler
Diffstat (limited to 'gemini.go')
| -rw-r--r-- | gemini.go | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -24,5 +24,9 @@ var ( // While any panic from ServeGemini aborts the response to the client, // panicking with ErrAbortHandler also suppresses logging of a stack // trace to the server's error log. - ErrAbortHandler = errors.New("net/http: abort Handler") + ErrAbortHandler = errors.New("gemini: abort Handler") + + // ErrHandlerTimeout is returned on ResponseWriter Write calls + // in handlers which have timed out. + ErrHandlerTimeout = errors.New("gemini: Handler timeout") ) |