Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-02-04 00:57:28 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-02-04 00:57:28 +0300
commita89d7adfa44767e71cfb9005e5a3eed6a91b4d84 (patch)
treebd872dbbc3c7ee303aabd8cb41b02b209a4a0778 /app/models/hooks
parent8618277f24e9adeef28fe93dc23b39f7a5357c52 (diff)
Rescue connection reset for web hooks
Diffstat (limited to 'app/models/hooks')
-rw-r--r--app/models/hooks/web_hook.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/hooks/web_hook.rb b/app/models/hooks/web_hook.rb
index 327cb585ffa..c8fa9c50918 100644
--- a/app/models/hooks/web_hook.rb
+++ b/app/models/hooks/web_hook.rb
@@ -48,7 +48,7 @@ class WebHook < ActiveRecord::Base
verify: false,
basic_auth: auth)
end
- rescue SocketError, Errno::ECONNREFUSED, Net::OpenTimeout => e
+ rescue SocketError, Errno::ECONNRESET, Errno::ECONNREFUSED, Net::OpenTimeout => e
logger.error("WebHook Error => #{e}")
false
end