Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

use IO.select instead of select to guard against monkey patchers

  • Loading branch information...
commit 306d20c5cfcfca0412294623044da69849164aaf 1 parent 1fa39a6
@rtomayko rtomayko authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/bertrpc/action.rb
View
2  lib/bertrpc/action.rb
@@ -26,7 +26,7 @@ def write(sock, bert)
def read(sock, len, timeout)
data, size = [], 0
while size < len
- r, w, e = select([sock], [], [], timeout)
+ r, w, e = IO.select([sock], [], [], timeout)
raise Errno::EAGAIN if r.nil?
msg, sender = sock.recvfrom(len - size)
size += msg.size
Please sign in to comment.
Something went wrong with that request. Please try again.