-----Original Message-----
From: Walsh, Dan <[EMAIL PROTECTED]>
To: '[EMAIL PROTECTED]' <[EMAIL PROTECTED]>
Date: Saturday, July 29, 2000 7:16 AM
Subject: Is there a way to get SSL_Connect to timeout?


>I am writing a program that connects to one hundred different machines.  A
>couple of these machines
>had network problems where they allowed the programs to connect but then
>never exchanged any data.

Please understand that SSL relies on the underlying networking API (aka
"socket" library) to achieve communication over the network. Therefore, it
is here that you need to tweak things.

>The problem is that when I call SSL_Connect on these connections, the
>connection seems to stay hang
>forever.  (Or at least a longer time than I am willing to wait.)  Is there
>anyway to tell SSL_Connect to timeout?

I suspect you are using blocking sockets (these block the application until
the communication is done). One way to achieve a timeout would be to use
non-blocking sockets(these do not block the application) and use the
select() system call (maybe many invocations) upto some time T before
deciding to give up.

Arun.
"The online world is a cool place to visit, but you really don't want to
live there."


****************************************************************
This message is for the named person(s) use only.  It may contain
confidential, proprietary or legally privileged information.  No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender.  You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. SPEEDERA NETWORKS, INC. reserves the right to
monitor all e-mail communications through its network.


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

Reply via email to