diff options
| author | Adnan Maolood <[email protected]> | 2021-02-24 08:37:52 -0500 |
|---|---|---|
| committer | Adnan Maolood <[email protected]> | 2021-02-24 08:37:52 -0500 |
| commit | 08f5ddd41a7755666f40f1fa5038b95d2850892c (patch) | |
| tree | 60c84f2dab3f704334bf5fbae52ea028533cf467 /handler.go | |
| parent | Add unexported method to timeout writer (diff) | |
| download | go-gemini-08f5ddd41a7755666f40f1fa5038b95d2850892c.tar.xz go-gemini-08f5ddd41a7755666f40f1fa5038b95d2850892c.zip | |
TimeoutHandler: Mention returned error
Diffstat (limited to 'handler.go')
| -rw-r--r-- | handler.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -80,7 +80,8 @@ 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. +// 40 Temporary Failure error. After such a timeout, writes by h to +// its ResponseWriter will return context.DeadlineExceeded. func TimeoutHandler(h Handler, dt time.Duration) Handler { return &timeoutHandler{ h: h, |