do not check the condition in which the connection was closed during
read() twice