catch-EOFError.diff

Go MAEDA, 2015-01-21 09:44

Download (669 Bytes)

View differences:

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