diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-19 01:56:50 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-19 01:56:50 +0000 |
commit | 3d57dfa01b8603da4d63a85014fa4cd0b640048e (patch) | |
tree | d953c87440748159e8c8e08d27464ad2ee5f4220 /ext/socket/lib | |
parent | 828d7a368acab6ca389a0d34791368c2e708f48b (diff) | |
download | ruby-3d57dfa01b8603da4d63a85014fa4cd0b640048e.tar.gz |
* ext/socket/lib/socket.rb (Socket.accept_loop): rescue
IO::WaitReadable instead of Errno::EWOULDBLOCK.
(Socket.udp_server_loop_on): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/lib')
-rw-r--r-- | ext/socket/lib/socket.rb | 4 |
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 |