Skip to content

Commit f783018

Browse files
authored
Merge pull request #130 from chef/ssd/rescue-epipe
Rescue EPIPE on connect in ssh transport
2 parents e1da796 + 5fe5151 commit f783018

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/train/transports/ssh_connection.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def uri
166166

167167
RESCUE_EXCEPTIONS_ON_ESTABLISH = [
168168
Errno::EACCES, Errno::EADDRINUSE, Errno::ECONNREFUSED, Errno::ETIMEDOUT,
169-
Errno::ECONNRESET, Errno::ENETUNREACH, Errno::EHOSTUNREACH,
169+
Errno::ECONNRESET, Errno::ENETUNREACH, Errno::EHOSTUNREACH, Errno::EPIPE,
170170
Net::SSH::Disconnect, Net::SSH::AuthenticationFailed, Net::SSH::ConnectionTimeout,
171171
Timeout::Error
172172
].freeze

0 commit comments

Comments
 (0)