No. My understanding of ZERO_RETURN means that the SSL session has been closed down by 
the other end. 
I've been doing some experimenting, and a no-data condition results in a WANT-READ.

I just want to know if that means I'm stuck, unable to send data, until something 
arrives.


-----Original Message-----
From: [EMAIL PROTECTED]
Sent: Jan 19, 2004 10:14 AM
To: [EMAIL PROTECTED]
Subject: Re: NON-BLOCKING I/O


<br><font size=2 face="sans-serif">Somebody please correct me if I'm wrong, but I 
believe in that case you'd receive a separate error, SSL_ERROR_ZERO_RETURN.  I have, 
for example, experienced conditions where the end of data transmission occurred 
precisely on my reading buffer size.  So the next SSL_raed() that I attempt results in 
zero data and thus SSL_ERROR_ZERO_RETURN.  Is that similar to the scenario you have in 
mind?</font>
<br>
<br><font size=2 face="sans-serif">-- kov</font>
<br>
<br>
<br>
<br><font size=2><tt>From my reading of the SSL_read man page, if I call SSL_read and 
there is no data, I will<br>
receive a WANT_READ error (or possibly a WANT_WRITE) if the underlying media can't<br>
fulfill the request.<br>
</tt></font>
<br><font size=2><tt>It is also my understanding that should I get a "WANT" result, 
the only thing I can do<br>
is to retry the call when it can be fulfilled. However, if "no data" is a valid 
condition,<br>
and I receive a WANT result, then does that mean I can't call SSL_WRITE to send a 
message?<br>
</tt></font>
<br>
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to