Re: How to timeout a SSL_connect?

1999-12-24 Thread Alexey Melnikov
Bodo Moeller wrote: Alexey Melnikov [EMAIL PROTECTED]: You should use select() with timeout, however this will require modifications to OpenSSL. Why? What modifications? I was talking about writing own BIO module Alexey

Re: How to timeout a SSL_connect?

1999-12-20 Thread Per Nilsson
nt: den 19 december 1999 22:39 Subject: Re: How to timeout a SSL_connect? I just had to recheck, and this does indeed work on NT 4.0 (SP6) Winsock 1.1 requested , linked with wsock32.lib from VC6 That's not a valid test. You need to test against a 1.1 library not a 2.0 library with a 1

Re: How to timeout a SSL_connect?

1999-12-20 Thread Jeffrey Altman
I beleive wsock32.lib is the 1.1 lib, and ws2_32.lib is for winsock 2. Anyway, wsadata-szDescription contains "WinSock 2.0" after I initialize. If you take a look using the dependency walker you will find that wsock32.dll uses ws2_32.dll so it is probably just a 1.1 backward compatibility

Re: How to timeout a SSL_connect?

1999-12-20 Thread Jeffrey Altman
I did some research. SO_RCVTIMEO and SO_SNDTIMEO were not part of the winsock 1.1 specification and were added to the winsock 2.0 spec. However, they are available in the Winsock 1.1 that was implemented for NT 3.51. Winsock 2.0 also added support for IP_OPTIONS, IP_TOS, IP_TTL, TCP_MAXSEG, and

Re: How to timeout a SSL_connect?

1999-12-19 Thread Jeffrey Altman
I just had to recheck, and this does indeed work on NT 4.0 (SP6) Winsock 1.1 requested , linked with wsock32.lib from VC6 That's not a valid test. You need to test against a 1.1 library not a 2.0 library with a 1.1 request. Jeffrey Altman * Sr.Software Designer * Kermit-95 for Win32

Re: How to timeout a SSL_connect?

1999-12-18 Thread Bodo Moeller
Alexey Melnikov [EMAIL PROTECTED]: You should use select() with timeout, however this will require modifications to OpenSSL. Why? What modifications? __ OpenSSL Project http://www.openssl.org

Re: How to timeout a SSL_connect?

1999-12-17 Thread Alexey Melnikov
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)

Re: How to timeout a SSL_connect?

1999-12-17 Thread Nicolas Roumiantzeff
You could start a secondary thread that sleeps for the desired number of seconds then close the socket (if the primary thread has still not succeeded in connecting). This should exit the primary thread socket call with an error. Nicolas Roumiantzeff. Sean Walker wrote: That's what I was going

How to timeout a SSL_connect?

1999-12-15 Thread Alice Joseph
for this session SSL_set_fd(ssl, fd); v. Initiate an SSLConnection SSL_connect(ssl); This call doesn't return at times and 'gdb' shows it's in read() called by ssl_read(). How do I timeout this SSL_connect() call? How should I go about it? Thanks -alice

How to timeout a SSL_connect?

1999-12-15 Thread Alice Joseph
for this session SSL_set_fd(ssl, fd); v. Initiate an SSLConnection SSL_connect(ssl); This call doesn't return at times and 'gdb' shows it's in read() called by ssl_read(). How do I timeout this SSL_connect() call? How should I go about it? Thanks -alice

How to timeout a SSL_connect?

1999-12-15 Thread Alice Joseph
for this session SSL_set_fd(ssl, fd); v. Initiate an SSLConnection SSL_connect(ssl); This call doesn't return at times and 'gdb' shows it's in read() called by ssl_read(). How do I timeout this SSL_connect() call? How should I go about it? Thanks -alice

Re: How to timeout a SSL_connect?

1999-12-15 Thread Dennis Glatting
(ssl, fd); v. Initiate an SSLConnection SSL_connect(ssl); This call doesn't return at times and 'gdb' shows it's in read() called by ssl_read(). How do I timeout this SSL_connect() call? How should I go about it? Thanks -alice S/MIME Cryptographic Signature