Project

General

Profile

Defect #18922 » catch-EOFError.diff

Go MAEDA, 2015-01-21 09:44

View differences:

extra/mail_handler/rdm-mailhandler.rb (working copy)
debug "Posting to #{uri}..."
begin
response = Net::HTTPS.post_form(URI.parse(uri), data, headers, :no_check_certificate => no_check_certificate)
rescue SystemCallError => e # connection refused, etc.
rescue SystemCallError, EOFError => e # connection refused, etc.
warn "An error occured while contacting your Redmine server: #{e.message}"
return 75 # temporary failure
end
(1-1/2)