> > > I always call SSL_pending() before going into select(), as far as I > > > understand that should be sufficient. Anyways, the server is > > > not hanging > > > in select(), it is definitely inside SSL_read(). > > > > Is your socket non-blocking?
> No, socket is blocking. When I run s_client in non-blocking mode it > doesn't get stuck. You can't use 'select' reliably with blocking sockets. Well, it is possible to do so, but it is extremely difficult and can only be done with OpenSSL using bio pairs or some other mechanism where you do all the I/O. Why are your sockets blocking? And if you want to block, what is 'select' doing for you? DS ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]