socket/pure_ruby: reduce Errno::EAGAIN exceptions
commitb2c478eb88f442adb44b1fbe21ee25c1d368ae89
authorEric Wong <normalperson@yhbt.net>
Fri, 11 Nov 2011 23:55:04 +0000 (11 15:55 -0800)
committerEric Wong <normalperson@yhbt.net>
Fri, 11 Nov 2011 23:55:04 +0000 (11 15:55 -0800)
treecc51c4e8b31307b0bcdfbb5a7a158d0886d159d0
parent890b3904c770955cdb0a70864060f99786a4f402
socket/pure_ruby: reduce Errno::EAGAIN exceptions

Exceptions are expensive, and Errno::EAGAIN is especially so
in MRI 1.9.2+, so avoid generating too many of them.  This
is the whole reason kgio exists, after all.
lib/mogilefs/socket/pure_ruby.rb