Hello,
> Thanks, I will.  What's the largest value this can be set to?  Or is it
> better to do chunked reads?
For SSL maximum record data size is 2^14 which may be extended two times
by setting SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER.
But this is logical size of SSL record which means that to real data
MAC code is added, then padding is added, all this is encrypted and
this size can not be bigger that 2^14 (or two times 2^14).
Of course SSL works over TCP (mostly) and you should always be prepared
to read or write data in chunks. Next, SSL sends data in packets
and buffers unread data in SSL layer. If for example in SSL layer you
have already 10 bytes and you want to read 8kb, SSL_read() will return
only 10 bytes and you should retry SSL_read() to read more data.
To check if SSL layer has already buffered data you may use
SSL_pending().  

Best regards,
-- 
Marek Marcola <[EMAIL PROTECTED]>

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

Reply via email to