From eb160265b7678939d88cccd5ab337a4be5dc4741 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Thu, 16 Nov 2017 20:41:29 +0000 Subject: [PATCH] Decrease http timeouts for /signup and /signin routes --- web/routes.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/routes.go b/web/routes.go index dc3a7003..eb14c7aa 100644 --- a/web/routes.go +++ b/web/routes.go @@ -84,7 +84,7 @@ func routes(s *fibre.Fibre) { }) s.Use(mw.Quit(&mw.QuitOpts{ - Timeout: 10 * time.Second, + Timeout: 5 * time.Second, }).PathIs("/signup")) s.Use(mw.Type(&mw.TypeOpts{ @@ -109,7 +109,7 @@ func routes(s *fibre.Fibre) { }) s.Use(mw.Quit(&mw.QuitOpts{ - Timeout: 10 * time.Second, + Timeout: 5 * time.Second, }).PathIs("/signin")) s.Use(mw.Type(&mw.TypeOpts{