Set your scocket in non blocking mode.
Then your BIO_write will return always immediately and
- if it return a value <=0 and
- should_retry is false, you know that a critical error has occured
like a closure of the connection.
- should_rety is true, then you have to ... retry. The best way is then
to perform a select instead of a polling.
Pierre De Boeck
Sr System Engineer
Mission Critical (Belgium)
Phone: +32 2 757 10 15 Fax: +32 2 759 276 0
email: [EMAIL PROTECTED]
///
(. .)
---------------------------------oOO--(_)--OOo----------------------
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Rick H. Wesson
> Sent: Wednesday, July 14, 1999 5:29 PM
> To: [EMAIL PROTECTED]
> Subject: detecting servers close connection
>
>
>
>
> can someonbe suggest a way to detect if the server has closed
> the connection before you atempt to write to an ssl_bio?
>
> the context is non-blocking io
>
> thanks,
>
> -rick
>
>
>
>
> ______________________________________________________________________
> OpenSSL Project http://www.openssl.org
> User Support Mailing List [EMAIL PROTECTED]
> Automated List Manager [EMAIL PROTECTED]
BEGIN:VCARD
VERSION:2.1
N:De Boeck;Pierre;;;
FN:Pierre De Boeck
ORG:Mission Critical
TITLE:Sr System Engineer
TEL;WORK;VOICE:+32 (2) 757.10.15
TEL;HOME;VOICE:+32 2 7594496
TEL;WORK;FAX:+32 2 759 27 60
ADR;WORK:;;Avenue Claire 27;Waterloo;;1410;Belgium
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:Avenue Claire 27=0D=0AWaterloo, 1410=0D=0ABelgium
ADR;HOME:;;Dekenijstraat 21 BUS;;6;;Belgium
LABEL;HOME;ENCODING=QUOTED-PRINTABLE:Dekenijstraat 21 BUS=0D=0A, 6 =0D=0ABelgium
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:19990421T075946Z
END:VCARD
smime.p7s