HomePhabricator

windows: make sure we fully read and cleanly close the connection

Authored by marmoute.

Description

windows: make sure we fully read and cleanly close the connection

Maybe this will prevent server on Windows to sometimes complains about the
client closing the connection too soon. So we make sure we read everything and
we officially close the connection.

Hopefully Windows will be happier and the test will stop being flaky.

Differential Revision: https://phab.mercurial-scm.org/D11073