The tests had a few small problems:
* The comment claimed that the send operation was blocking until
timeout. However, a send should terminate once the server closes the
socket.
* The test possibly force-closed the connection, instead of testing the
outcome that the server closes it.
* The test tried to read a "413 Content too large", but such an outcome
is not guaranteed when the server is closing the connection.
Fix all issues, by adjusting the comments and asserting the server
closes the connection. The error code is only asserted in the debug
log.