End Of Stream means there is nothing more to read because the other end has closed the stream.
The value is 0
is not nothing, it is a zero.
You will get an exception if the connection is lost unexpectedly. I.e. the other end had not closed the connection gracefully.