aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorFChannel <>2022-06-18 11:10:46 -0700
committerFChannel <>2022-06-19 12:53:29 -0700
commite13f8001c69375a83efd3ff1bedb367b6851226a (patch)
tree2b6eea832d5b81531f714ade81dfab433f7174a9 /main.go
parent54a0578dbc5eb65cd84ec1a67b2b36a4fbfb73ee (diff)
dont wait for inbox request to redirect user. prevents uneeded hang after post
Diffstat (limited to 'main.go')
-rw-r--r--main.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.go b/main.go
index e472762..837fec5 100644
--- a/main.go
+++ b/main.go
@@ -31,6 +31,9 @@ func main() {
app := fiber.New(fiber.Config{
AppName: "FChannel",
Views: template,
+ ReadTimeout: 30 * time.Second,
+ WriteTimeout: 30 * time.Second,
+ IdleTimeout: 60 * time.Second,
ServerHeader: "FChannel/" + config.InstanceName,
})