Commit 26ed3940 authored by jplang's avatar jplang

rdm-mailhandler.rb should catch EOFError (#18922).

Patch by Go MAEDA.

git-svn-id: https://svn.redmine.org/redmine/trunk@13961 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 734644f4
......@@ -129,7 +129,7 @@ class RedmineMailHandler
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, IOError => e # connection refused, etc.
warn "An error occured while contacting your Redmine server: #{e.message}"
return 75 # temporary failure
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment