Socket line readers consume the line terminator. This matches common line-oriented network protocols where callers compare the payload line, not the transport delimiter.
Throws
IOException if the socket stream is closed, disconnected, times out, or the underlying network I/O fails.