Marek Marcola wrote:
So the problem persists: my server is stuck in a call to [SSL_do_handshake() which calls] SSL_accept() because the handshaking never finishes.

Any other idea what I can try ?

You may try:

alarm(20);
SSL_accept();
alarm(0);

with some error checking of course.

I'd rather not fiddle around with signals. My server is embedded in an MPI application, and some MPI implementations already use SIGALRM for their own purpose and warn about unexpected interferences with user signal handling code.

Isn't there some SSL routine with which I can set a timeout for the TLS/SSL handshake, similar to the timeout parameter in a select call ?

--
Cheers, Thomas.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to