Bodo Moeller <[EMAIL PROTECTED]> writes:

> 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.
Alternately, if you are writing some simple program that doesn't
need to do anything else while waiting for accept(), just use
alarm().

-Ekr
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to