From c6346ea210909a20b6eb8100dd4e80aef9644847 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 4 Jan 2017 13:36:52 +0100 Subject: [PATCH] Increased timeouts. --- app/models/channel/driver/imap.rb | 2 +- app/models/channel/driver/pop3.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/models/channel/driver/imap.rb b/app/models/channel/driver/imap.rb index ff6fafe1d..224456028 100644 --- a/app/models/channel/driver/imap.rb +++ b/app/models/channel/driver/imap.rb @@ -78,7 +78,7 @@ example Rails.logger.info "fetching imap (#{options[:host]}/#{options[:user]} port=#{port},ssl=#{ssl})" # on check, reduce open_timeout to have faster probing - timeout = 24 + timeout = 30 if check_type == 'check' timeout = 6 end diff --git a/app/models/channel/driver/pop3.rb b/app/models/channel/driver/pop3.rb index d8e3a37e8..2ee75651a 100644 --- a/app/models/channel/driver/pop3.rb +++ b/app/models/channel/driver/pop3.rb @@ -66,8 +66,8 @@ returns #@pop.set_debug_output $stderr # on check, reduce open_timeout to have faster probing - @pop.open_timeout = 12 - @pop.read_timeout = 24 + @pop.open_timeout = 16 + @pop.read_timeout = 30 if check_type == 'check' @pop.open_timeout = 4 @pop.read_timeout = 6