From 08f5ddd41a7755666f40f1fa5038b95d2850892c Mon Sep 17 00:00:00 2001 From: Adnan Maolood Date: Wed, 24 Feb 2021 08:37:52 -0500 Subject: [PATCH] TimeoutHandler: Mention returned error --- handler.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/handler.go b/handler.go index 7da523d..1380ed0 100644 --- a/handler.go +++ b/handler.go @@ -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,