From 7969ecea6a722fdc66c0d5d82fe231db8d1016f2 Mon Sep 17 00:00:00 2001
From: Cory McDonald <cmcdonald@brave.com>
Date: Wed, 29 May 2019 14:54:44 -0500
Subject: [PATCH] Increase write timeout (#1922)

---
 config/environments/production.rb | 2 +-
 config/environments/staging.rb    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/config/environments/production.rb b/config/environments/production.rb
index e8091f51b3..eae2f92329 100644
--- a/config/environments/production.rb
+++ b/config/environments/production.rb
@@ -72,7 +72,7 @@
     url: Rails.application.secrets[:redis_url],
     connect_timeout: 30,  # Defaults to 20 seconds
     read_timeout:    10, # Defaults to 1 second
-    write_timeout:   10, # Defaults to 1 second
+    write_timeout:   60, # Defaults to 1 second
 
     error_handler: -> (method:, returning:, exception:) {
       # Report errors to Sentry as warnings
diff --git a/config/environments/staging.rb b/config/environments/staging.rb
index 66c30f1bb7..a7eab58d23 100644
--- a/config/environments/staging.rb
+++ b/config/environments/staging.rb
@@ -65,7 +65,7 @@
     url: Rails.application.secrets[:redis_url],
     connect_timeout: 30,  # Defaults to 20 seconds
     read_timeout:    10, # Defaults to 1 second
-    write_timeout:   10, # Defaults to 1 second
+    write_timeout:   60, # Defaults to 1 second
 
     error_handler: -> (method:, returning:, exception:) {
       # Report errors to Sentry as warnings