"Gang Lu" <[EMAIL PROTECTED]>:
> Recently, I built a simple client/server program when trying
> openssl-0.9.2b. However, when I try to send 64K bytes from client to
> server, I found that server has to get those data by 4 times usingh
> SSL_read. That means I use SSL_read 4 times to get all 64K data because
> SSL_read only return 16K no matter how big I specify it to read.
> Should I set some cache size somewhere before I call SSL_read or there
> is other problem?
It's not a problem at all. You never can expect that a single read()
will return all data -- the library (just like the read() system call)
cannot know where to stop.
The reason for the behaviour you observed is not just some peculiarity
of SSL_read: That data is split in 16K blocks already when it is
written. This is the maximum record size allowed by RFC 2246.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]