From 6c88a24d9c0e9142af49e5848df67ed158d36593 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 9 Jan 2017 15:47:47 +0100 Subject: [PATCH] Increased timeouts. --- app/models/channel/driver/imap.rb | 2 +- app/models/channel/driver/pop3.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/channel/driver/imap.rb b/app/models/channel/driver/imap.rb index 224456028..4bf18c08c 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 = 30 + timeout = 45 if check_type == 'check' timeout = 6 end diff --git a/app/models/channel/driver/pop3.rb b/app/models/channel/driver/pop3.rb index 2ee75651a..a8341b6e4 100644 --- a/app/models/channel/driver/pop3.rb +++ b/app/models/channel/driver/pop3.rb @@ -67,7 +67,7 @@ returns # on check, reduce open_timeout to have faster probing @pop.open_timeout = 16 - @pop.read_timeout = 30 + @pop.read_timeout = 45 if check_type == 'check' @pop.open_timeout = 4 @pop.read_timeout = 6