From 8beccb4ac961ed02bb23c58485572dd6205844c0 Mon Sep 17 00:00:00 2001 From: Grant Colegate Date: Mon, 14 Nov 2022 16:28:11 +1030 Subject: [PATCH] Handle ETIMEDOUT during socket connection --- lib/buildkite/test_collector/socket_connection.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/buildkite/test_collector/socket_connection.rb b/lib/buildkite/test_collector/socket_connection.rb index 9c91c5b..82cbbf3 100644 --- a/lib/buildkite/test_collector/socket_connection.rb +++ b/lib/buildkite/test_collector/socket_connection.rb @@ -82,7 +82,7 @@ def initialize(session, url, headers) @session.disconnected(self) disconnect end - rescue Errno::ECONNRESET => e + rescue Errno::ECONNRESET, Errno::ETIMEDOUT => e Buildkite::TestCollector.logger.error("#{e}") if @socket Buildkite::TestCollector.logger.error("attempting disconnected flow")