On Fri, Sep 07, 2001 at 11:06:06AM +0300, Andrew Popov wrote:
> We need to set timeout on SSL_accept()
> Seting with SSL_CTX_set_timeout(SSL_CTX *ctx, long t) has no effect
No, this function is not about connection timeouts (it is about the
session cache).
To impose a timeout on SSL_accept, use non-blocking sockets and loop
around SSL_accept(). See the SSL_get_error() manual page for details.
You will have to do your own time bookkeeping and call select()
with appropriate timeouts.
--
Bodo Möller <[EMAIL PROTECTED]>
PGP http://www.informatik.tu-darmstadt.de/TI/Mitarbeiter/moeller/0x36d2c658.html
* TU Darmstadt, Theoretische Informatik, Alexanderstr. 10, D-64283 Darmstadt
* Tel. +49-6151-16-6628, Fax +49-6151-16-6036
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]