Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion lib/daemon_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,10 @@ def ping_socket(socket_domain, sockaddr)
end
end
true
rescue Errno::ECONNREFUSED, Errno::ENOENT
rescue Errno::ECONNREFUSED, Errno::ECONNRESET, Errno::ENOENT
# ECONNRESET: the connection landed in the listen backlog of a
# server that closed its listening socket before accepting it,
# e.g. because it is shutting down.
false
ensure
socket.close if socket
Expand Down