add check for no data received in sockets