Keep reading from socket till EOF is reached.