我用SSL_read代替read的时候。
但是,每次读入的数据长度好像受到了限制
一次只能读入300多一点个子节的数据,其他数据都被丢掉了
请问这是为什么,如何解决
谢谢!
---------------------------------------------------------------
SSL_read() works based on the SSL/TLS records. The data
are received in records (with a maximum record size of
16kB for SSLv3/TLSv1). Only when a record has been
completely received, it can be processed (decryption and
check of integrity). Therefore data that was not retrieved
at the last call of SSL_read() can still be buffered
inside the SSL layer and will be retrieved on the next
call to SSL_read(). If num is higher than the number of
bytes buffered, SSL_read() will return with the bytes
buffered.