Skip to content

Instantly share code, notes, and snippets.

@netshade
Created March 14, 2013 14:34
Show Gist options
  • Save netshade/5161832 to your computer and use it in GitHub Desktop.
Save netshade/5161832 to your computer and use it in GitHub Desktop.
JRuby Timeout / IO.select bug
# 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