On Fri, Jun 14, 2002 at 04:17:58PM +0200, Martin Sjögren wrote:

> I'm having a few delicate problems, and I think at least one of them
> adheres to non-blocking sockets, which is what I use.
> 
> 1) Is it possible to get a WANT_WRITE error when I actually don't have
> anything to send (on my high-level layer)? [...]

Yes.  See the SSL_get_error() manpage,
http://www.openssl.org/docs/ssl/SSL_get_error.html


> 2) Say I have a program that sends a tiny crucial piece of data to another
> program and can't do anything before it gets another tiny crucial piece of
> data back... Can this go wrong in the sense that the first (or second for
> that matter) piece of data isn't large enough to fill an SSL record, so
> that it won't get sent and everything locks down?  [...]

No.  Records can be tiny, the application does not have to worry about
this.


-- 
Bodo Möller <[EMAIL PROTECTED]>
PGP http://www.informatik.tu-darmstadt.de/TI/Mitarbeiter/moeller/0x36d2c658.html
* TU Darmstadt, Theoretische Informatik, Alexanderstr. 10, D-64283 Darmstadt
* Tel. +49-6151-16-6628, Fax +49-6151-16-6036
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to