Skip to content

Instantly share code, notes, and snippets.

@iconoclast
iconoclast / io-select-test.rb
Created October 25, 2012 01:13
Test for IO.select bug as seen with jruby on aix
## simple test to check for broken IO.select behavior as seen with jruby on aix using java6 or java7
##
require 'socket'
begin
port = ARGV.shift || '4321'
server = TCPServer.new('localhost', port)
client = TCPSocket.new('localhost', port)