Skip to content

Commit

Permalink
Merge pull request #162 from buildkite/pie-1286-fix-error-on-network-…
Browse files Browse the repository at this point in the history
…disconnect

Handle ETIMEDOUT during socket connection
  • Loading branch information
blaknite authored Nov 14, 2022
2 parents 6610bb3 + 8beccb4 commit 7d6a86e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/buildkite/test_collector/socket_connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 7d6a86e

Please sign in to comment.