Hi,
I am using BIO for data transmission over ssl connection, but there is a
problem when I want to transmit data larger than 1Mb. The codes works fine
when I write to the socket bio with less data. I want to ask if there is a
data size limit for the BIO_write() for the socket bio? How to solve this
problem?
Here is the BIO_write() part :
while (tempSize < cipherSize) {
datalen = BIO_read(datafile, datach, BUFFSIZE);
writelen = BIO_write(sbio, datach, datalen);
cout << "writelen : " << writelen << endl;
tempSize = tempSize + datalen;
}
The BUFFSIZE is set to 4096 bytes. When I run the codes, it just stops
after several times writing to the bio and the data is only partially send.
Thanks!