From: GOTOU Yuuzou Date: 2003-11-13T03:38:07+09:00 Subject: Re: Ruby/OpenSSL bug? In message <20031113.030225.1011599469.gotoyuzo@kotetsu.does.notwork.org>, `GOTOU Yuuzou ' wrote: > In message <009801c3a8ba$031c5e00$c81e140a@abraham>, > `"Nathaniel Talbott" ' wrote: > > The following program hangs indefinitely, blocking the whole script. I would > > expect it to gracefully return an error. > > Handshake of SSL needs exchange of some messages, but > SSLSocket#connect disables switch of thread because it is > implemented with C. > > I don't understand whether it is safe to wrap SSL_connect > with TRAP_BEG and TRAP_END. I think that it's better to do > it experimentally after release of Ruby-1.8.1 than now. Though I tried to test it, it didn't work ;) However it enables to interrupt with Crtl-C. Hmm, I try inspecting a little more. -- gotoyuzo