Topic: [SOLVED] wolfssl reading data from associated socket in chunk

For some reason im running into an issue where wolfSSL_read(); is reading data from the associated socket in chunks of 3, is this normal? Or is there something im doing wrong?

output
https://puu.sh/F448X/d43163c494.png

recv func
https://puu.sh/F44ka/abcae800f4.png

Share

Re: [SOLVED] wolfssl reading data from associated socket in chunk

I actually figured out what i was doing wrong, on this line:

wsares = wolfSSL_read(this->csocket_ssl, buff, sizeof(buff));

i accidentally used sizeof(); instead of strlen();

and considering i am compiling as 32bit the fact that sizeof(buff) is returning 3(really 4) bytes makes sense

Share