hello,
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.
hello,
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?
In my event library Rev (http://rev.rubyforge.org) I ended up
effectively
monkeypatching the C code in the Ruby OpenSSL extension in order to
support
non-blocking I/O:
I for one would certainly appreciate a “real” solution to doing
non-blocking SSL.
If there’s interest I can release Rev’s nonblocking SSL support as a
self-contained Gem which monkeypatches connect_nonblock,
accept_nonblock,
read_nonblock, and write_nonblock methods into OpenSSL::SSL::Socket.
I for one would certainly appreciate a “real” solution to doing
non-blocking SSL.
If there’s interest I can release Rev’s nonblocking SSL support as a
self-contained Gem which monkeypatches connect_nonblock,
accept_nonblock,
read_nonblock, and write_nonblock methods into OpenSSL::SSL::Socket.