NCBC-197: Throw meaningful exception when 0 bytes received on socket