Created
March 14, 2013 14:34
-
-
Save netshade/5161832 to your computer and use it in GitHub Desktop.
JRuby Timeout / IO.select bug
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ruby -v => jruby 1.7.3 (1.9.3p385) 2013-02-21 dac429b on OpenJDK 64-Bit Server VM 1.7.0-u10-b06-20120912 [darwin-x86_64] | |
r, w = IO.pipe | |
require 'timeout' | |
Timeout::timeout(1) { IO.select([r]) } # does not timeout, blocks indefinitely | |
# No clue how to report an issue using their JIRA reporter, so... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment