> I want to use timeout with select and I wonder how to "cancel" operation
> (SSL_read or SSL_write non-blocking) that caused SSL_ERROR_WANT_READ (or
> *_WRITE). I've got messages queue to send (and one for received too). If
> I cannot send whole particular msg within some time (5 sec) I want to
> discard this message and start sending another one.

        That is just not possible. Byte streams don't work that way.

> The problem is, when
> not fully transmited (received) msg "locks" in state where I receive
> SSL_ERROR_WANT_XXX. From docs etc. I know, that when I've got
> SSL_ERROR_WANT_* I have to retry operation which caused this "error" but
> it require more time, which I haven't got becouse I want to send another
> message ! I can always close connection and open it again, but it is
> ugly solution. Is there any way, to do it in more "polite" way ?

        No. Rethink whatever it is about your design that imposed this bizarre
requirement. Byte streams do not support "all or nothing" operations.

        DS

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

Reply via email to