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
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
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
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
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
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
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)
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
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
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
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
(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
12 matches
Mail list logo