From 260099b510f11f9486be776c3d99ff27d3d7caba Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Sat, 23 Sep 2017 14:31:16 +0200 Subject: [PATCH] Applied same http timeout for fetching locales and translations. --- app/models/locale.rb | 2 ++ app/models/translation.rb | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/models/locale.rb b/app/models/locale.rb index 854fd75ce..9381ba46a 100644 --- a/app/models/locale.rb +++ b/app/models/locale.rb @@ -99,6 +99,8 @@ all: }, { json: true, + open_timeout: 8, + read_timeout: 24, } ) diff --git a/app/models/translation.rb b/app/models/translation.rb index 3cea271b7..dde80442a 100644 --- a/app/models/translation.rb +++ b/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?