I am using ruby’s imap library to connect to gmail via ssl.
But every now and then, my thread goes into sleep and never wakes up.
I suspect that the thread is waiting for I/O for reading.
how can I make openssl use nonblocking i/o?
here’s another thread discussed about similar issue: