Skip to content

Commit

Permalink
Press on if ECONNREFUSED
Browse files Browse the repository at this point in the history
  • Loading branch information
homerlex committed Sep 13, 2016
1 parent 5fb00e0 commit 93dd8fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/autodiscover/pox_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def autodiscover
begin
response = client.http.post(url, request_body, {'Content-Type' => 'text/xml; charset=utf-8'})
return PoxResponse.new(response.body) if good_response?(response)
rescue Errno::ENETUNREACH
rescue Errno::ENETUNREACH, Errno::ECONNREFUSED
next
rescue OpenSSL::SSL::SSLError
options[:ignore_ssl_errors] ? next : raise
Expand Down

0 comments on commit 93dd8fb

Please sign in to comment.