diff options
| author | Adnan Maolood <[email protected]> | 2021-02-23 22:15:19 -0500 |
|---|---|---|
| committer | Adnan Maolood <[email protected]> | 2021-02-23 22:15:19 -0500 |
| commit | 526d232ab038894842dbfd85e7fb878a03eec648 (patch) | |
| tree | f691682bd033372fafea7b73fb556e941541beb6 /handler.go | |
| parent | Move TimeoutHandler to handler.go (diff) | |
| download | go-gemini-526d232ab038894842dbfd85e7fb878a03eec648.tar.xz go-gemini-526d232ab038894842dbfd85e7fb878a03eec648.zip | |
Remove ErrHandlerTimeout
Diffstat (limited to 'handler.go')
| -rw-r--r-- | handler.go | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -79,8 +79,7 @@ func StripPrefix(prefix string, h Handler) Handler { // // The new Handler calls h.ServeGemini to handle each request, but // if a call runs for longer than its time limit, the handler responds with a -// 40 Temporary Failure error. After such a timeout, writes by h to its -// ResponseWriter will return ErrHandlerTimeout. +// 40 Temporary Failure error. func TimeoutHandler(h Handler, dt time.Duration) Handler { return &timeoutHandler{ h: h, |