[PATCH conductor] BZ789853 added rescue connection timeout

Petr Blaho pblaho at redhat.com
Tue Feb 28 14:41:46 UTC 2012


On Thursday, February 23, 2012 04:42:23 PM jtomasek at redhat.com wrote:
> 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
> 

ACK.

-- 

With regards
Petr Blaho



More information about the aeolus-devel mailing list