Fix AsyncSocketTest.WriteErrorCallbackBytesWritten
Summary:
[Folly] Fix `AsyncSocketTest.WriteErrorCallbackBytesWritten`.
Thanks to congestion, especially when the tests are run concurrently, the expectations in the test were too restrictive.
If only 20KB are read, it is possible that only 20KB are acknowledged. The expectation was that if 20KB are read and the recv buffer and send buffer are both 8KB and 24KB are written then all 24KB are acknowledged, but congestion control disagrees.
It is possible that any number of bytes are written to the send buffer, from 28KB up to 40KB. And we have to explicitly wait for 28KB to be written even to know that (otherwise we only know that 20KB are written).
Differential Revision:
D6550804
fbshipit-source-id:
100d086972c1526b909da0dbb6e609c144d7b17b