We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae4665c commit 10d8c53Copy full SHA for 10d8c53
middleware/timeout.go
@@ -42,8 +42,8 @@ var (
42
}
43
)
44
45
-// Timeout returns a middleware which recovers from panics anywhere in the chain
46
-// and handles the control to the centralized HTTPErrorHandler.
+// Timeout returns a middleware which returns error (503 Service Unavailable error) to client immediately when handler
+// call runs for longer than its time limit. NB: timeout does not stop handler execution.
47
func Timeout() echo.MiddlewareFunc {
48
return TimeoutWithConfig(DefaultTimeoutConfig)
49
0 commit comments