Commit 9e1e36c1 authored by Luke Duncalfe's avatar Luke Duncalfe

Handle `Errno::ENETUNREACH` in `Gitlab::HTTP`

Handled the same as `Errno::EHOSTUNREACH` is, in `Gitlab::HTTP`. We see
some of these exceptions on occasion being raised by `WebHookService`.
Handling within `Gitlab::HTTP` will mean the service will successfully
disable failing web hooks.

Changelog: changed
parent 8e24a20c
......@@ -15,7 +15,7 @@ module Gitlab
].freeze
HTTP_ERRORS = HTTP_TIMEOUT_ERRORS + [
EOFError, SocketError, OpenSSL::SSL::SSLError, OpenSSL::OpenSSLError,
Errno::ECONNRESET, Errno::ECONNREFUSED, Errno::EHOSTUNREACH,
Errno::ECONNRESET, Errno::ECONNREFUSED, Errno::EHOSTUNREACH, Errno::ENETUNREACH,
Gitlab::HTTP::BlockedUrlError, Gitlab::HTTP::RedirectionTooDeep
].freeze
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment