Browse Source

Applied same http timeout for fetching locales and translations.

Martin Edenhofer 7 years ago
parent
commit
260099b510
2 changed files with 4 additions and 2 deletions
  1. 2 0
      app/models/locale.rb
  2. 2 2
      app/models/translation.rb

+ 2 - 0
app/models/locale.rb

@@ -99,6 +99,8 @@ all:
       },
       {
         json: true,
+        open_timeout: 8,
+        read_timeout: 24,
       }
     )
 

+ 2 - 2
app/models/translation.rb

@@ -81,8 +81,8 @@ push translations to online
       },
       {
         json: true,
-        open_timeout: 6,
-        read_timeout: 16,
+        open_timeout: 8,
+        read_timeout: 24,
       }
     )
     raise "Can't push translations to #{url}: #{result.error}" if !result.success?