tarcieri/nio4r — pull request #4 by loganb (2012-05-06 23:09:08+00:00)
Title: SSL Socket test sometimes loops forever

Hello,

On my OS X Mac, the SSL socket test will sometimes enter an infinite loop trying to create an unwritable SSL socket. The reason is that Kernel#select will report the socket writable event though write_nonblock throws an exception when any data is written. I've restructured the logic to trap this condition with a "pending" block (though I cannot confirm that the test passes on other machines).