[PATCH conductor] BZ789853 added rescue connection timeout

jtomasek at redhat.com jtomasek at redhat.com
Thu Feb 23 15:29:16 UTC 2012


From: Jiri Tomasek <jtomasek at redhat.com>

---
 src/app/controllers/images_controller.rb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/app/controllers/images_controller.rb b/src/app/controllers/images_controller.rb
index 0c6b350..8c42074 100644
--- a/src/app/controllers/images_controller.rb
+++ b/src/app/controllers/images_controller.rb
@@ -213,7 +213,7 @@ class ImagesController < ApplicationController
       url = params[:image_url]
       begin
         xml_source = RestClient.get(url, :accept => :xml)
-      rescue RestClient::Exception, SocketError, URI::InvalidURIError, Errno::ECONNREFUSED
+      rescue RestClient::Exception, SocketError, URI::InvalidURIError, Errno::ECONNREFUSED, Errno::ETIMEDOUT
         flash.now[:error] = t('images.flash.error.invalid_url')
         render :new and return
       end
-- 
1.7.7.6




More information about the aeolus-devel mailing list