Increased timeouts.

This commit is contained in:
Martin Edenhofer 2017-01-09 15:47:47 +01:00
parent 4caf022893
commit 6c88a24d9c
2 changed files with 2 additions and 2 deletions

View file

@ -78,7 +78,7 @@ example
Rails.logger.info "fetching imap (#{options[:host]}/#{options[:user]} port=#{port},ssl=#{ssl})" Rails.logger.info "fetching imap (#{options[:host]}/#{options[:user]} port=#{port},ssl=#{ssl})"
# on check, reduce open_timeout to have faster probing # on check, reduce open_timeout to have faster probing
timeout = 30 timeout = 45
if check_type == 'check' if check_type == 'check'
timeout = 6 timeout = 6
end end

View file

@ -67,7 +67,7 @@ returns
# on check, reduce open_timeout to have faster probing # on check, reduce open_timeout to have faster probing
@pop.open_timeout = 16 @pop.open_timeout = 16
@pop.read_timeout = 30 @pop.read_timeout = 45
if check_type == 'check' if check_type == 'check'
@pop.open_timeout = 4 @pop.open_timeout = 4
@pop.read_timeout = 6 @pop.read_timeout = 6