From 000643f2df2c3f25e8890c55099da53689f53244 Mon Sep 17 00:00:00 2001 From: Matthias Link Date: Thu, 2 Oct 2025 12:29:06 +0200 Subject: [PATCH] Add EHOSTUNREACH to retry conditions --- lib/io/endpoint/host_endpoint.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/io/endpoint/host_endpoint.rb b/lib/io/endpoint/host_endpoint.rb index 609cfba..8d7dc06 100644 --- a/lib/io/endpoint/host_endpoint.rb +++ b/lib/io/endpoint/host_endpoint.rb @@ -44,7 +44,7 @@ def connect(wrapper = self.wrapper, &block) Addrinfo.foreach(*@specification) do |address| begin socket = wrapper.connect(address, **@options) - rescue Errno::ECONNREFUSED, Errno::ENETUNREACH, Errno::EAGAIN => last_error + rescue Errno::ECONNREFUSED, Errno::ENETUNREACH, Errno::EHOSTUNREACH, Errno::EAGAIN => last_error # Try again unless if possible, otherwise raise... else return socket unless block_given?