The preceding test prints GET returned error: EOF, which is strange since io.EOF is often an "error" signaling normal termination of some stream. Instead, Do should mask the error as io.ErrUnexpectedEOF, which is more indicative of an abrupt termination.
The text was updated successfully, but these errors were encountered:
The preceding test prints
GET returned error: EOF
, which is strange sinceio.EOF
is often an "error" signaling normal termination of some stream. Instead,Do
should mask the error asio.ErrUnexpectedEOF
, which is more indicative of an abrupt termination.The text was updated successfully, but these errors were encountered: