Test for null bufferSize
Support null bufferSize for read and recvFrom