Fixes socket reading algorithm

Fixes socket reading algorithm: sizeof(recvBuff)