summaryrefslogtreecommitdiff
path: root/ext/socket/lib
diff options
context:
space:
mode:
Diffstat (limited to 'ext/socket/lib')
-rw-r--r--ext/socket/lib/socket.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/socket/lib/socket.rb b/ext/socket/lib/socket.rb
index 8d417487ec..1f155e7813 100644
--- a/ext/socket/lib/socket.rb
+++ b/ext/socket/lib/socket.rb
@@ -404,7 +404,7 @@ class Socket
readable.each {|r|
begin
sock, addr = r.accept_nonblock
- rescue Errno::EWOULDBLOCK
+ rescue IO::WaitReadable
next
end
yield sock, addr
@@ -567,7 +567,7 @@ class Socket
readable.each {|r|
begin
msg, sender_addrinfo, rflags, *controls = r.recvmsg_nonblock
- rescue Errno::EWOULDBLOCK
+ rescue IO::WaitReadable
next
end
ai = r.local_address