aboutsummaryrefslogtreecommitdiffstats
path: root/lib/resolv.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/resolv.rb')
-rw-r--r--lib/resolv.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/resolv.rb b/lib/resolv.rb
index f238439116..590a26bcf5 100644
--- a/lib/resolv.rb
+++ b/lib/resolv.rb
@@ -640,7 +640,8 @@ class Resolv
end
begin
reply, from = recv_reply(select_result[0])
- rescue Errno::ECONNREFUSED
+ rescue Errno::ECONNREFUSED, # GNU/Linux, FreeBSD
+ Errno::ECONNRESET # Windows
# No name server running on the server?
# Don't wait anymore.
raise ResolvTimeout