Weidong
On 6/23/06,
Torsha Banerjee <[EMAIL PROTECTED]> wrote:
Hello,
Can anyone please please tell me how to received the messages from the
group as digest instead of individual mails. My mailbox is getting
bombarded with these mails.
Thanks,
Torsha
Darryl Miles wrote:
>
> SSL_peek() there isn't much documentation about this one.
>
>
> My situation is this:
>
> * I'm using full non-blocking IO.
>
> * My application's main task in the moment is sending bulk data, a lot
> of data (enough to cause flow control bottleneck).
>
> * My application is not interested in reading any more data (yet) so it
> doesn't want to call SSL_read() as that might return some data
> (destructively) from the buffering.
>
> * But I want to allow OpenSSL to service the connection for the
> WANT_READ condition I got back from SSL_write().
>
> So what do I do ?
>
> My program is being told by the operating system I can write(), the
> operating system socket send buffers are empty, but OpenSSL is returning
> WANT_READ to SSL_write(), so I need to stop calling SSL_write() and wait
> for data to arrive. This means temporally ignoring the operating
> systems indication I may write data (which was previously driving my
> SSL_write() operations). So I'm guessing I can call SSL_peek() to clear
> that situation, that function doesn't appear documented but exists and
> I'm guessing it will allow the read side to be serviced but not remove
> any data (destructively) from buffering. Which is what I need at this
> point ?
>
> But I then need to know from SSL_peek() that the problem is now cleared,
> so I can try SSL_write() again, but surely it will always return
> WANT_READ. Maybe there is another indicator I can use to ask OpenSSL
> "Did the read operation I just do, clear the WANT_READ condition I got
> to my last SSL_write() function ?". If I get a Yes back, I can then
> re-enable my SSL_write() operations driven from operating system socket
> is writable event indication.
>
> Your thoughts appreciated,
>
> Darryl
> ______________________________________________________________________
> OpenSSL Project http://www.openssl.org
> User Support Mailing List openssl-users@openssl.org
> Automated List Manager [EMAIL PROTECTED]
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openssl-users@openssl.org
Automated List Manager [EMAIL PROTECTED]