]> source.dussan.org Git - redmine.git/commitdiff
rdm-mailhandler.rb should catch EOFError (#18922).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 7 Feb 2015 07:37:21 +0000 (07:37 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 7 Feb 2015 07:37:21 +0000 (07:37 +0000)
Patch by Go MAEDA.

git-svn-id: http://svn.redmine.org/redmine/trunk@13961 e93f8b46-1217-0410-a6f0-8f06a7374b81

extra/mail_handler/rdm-mailhandler.rb

index c55aed21f08bc22de4b2007da8b8a91e8c660377..36d06cb569d6d897e18595d241444e94902ff86c 100644 (file)
@@ -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