Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
TCPSocket#read_nonblock hangs #338
In my efforts to get Puma running I came across a problem with trying to read from TCP sockets (perhaps other IO objects as well?)
I put together a minimum reproducible here: https://gist.github.com/hqmq/9278656
That basically just sets up two threads (a server and a client) and then attempts to use TCPSocket#read_nonblock.
Any ideas where I should start looking?
Check out rbx's code for it:
It needs to be tweaked a little bit, but that could be pulled into https://github.com/MagLev/maglev/blob/master/src/kernel/bootstrap/IO.rb