This seems to work for me. The thing is to reset you have to save the
timeout
value since 'infinite' timeout was represented by different valuse on NT and
Win95. Havent tested on Win98.

/Per

 // Save timeout since default value differs between NT and Win95
 t0s=sizeof(t0);
 getsockopt(s,SOL_SOCKET,SO_RCVTIMEO,(char *)&t0,&t0s);

 t=TIMEOUT;
 setsockopt(s,SOL_SOCKET,SO_RCVTIMEO,(char *)&t,sizeof(t));


----- Original Message -----
From: Alexey Melnikov <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: Sean O'Dell <[EMAIL PROTECTED]>
Sent: Friday, December 17, 1999 12:32 AM
Subject: Re: How to timeout a SSL_connect?


> Sean Walker wrote:
> > >That's what I was going to do too, but under Win32 you can't set the
> > All of my research has said the same thing. I couldn't set the timeouts.
If
> > you can manage to figure it out, please post your solution! :)
>
> SO_RCVTIMEO/SO_SNDTIMEO doesn't work (i.e. read only or ignored) even on
> several Unixes.
> You should use select() with timeout, however this will require
> modifications to OpenSSL.
>
> Alexey
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> Development Mailing List                       [EMAIL PROTECTED]
> Automated List Manager                           [EMAIL PROTECTED]

smime.p7s

Reply via email to