Fixes an issue where asyncio.open_connection() hangs in a replay use case (i.e. when you want to record/replay data). Since send() and not sendall() is not called directly by asyncio, a proper check must be added.
Note that the use case still generates some issues in SSL sessions.
Coverage remained the same at 98.705% when pulling abeab4446b7c812602b6890f6f4705dca7859057 on fvigo:asyncio_send into 455513beeab5eb8e8ce1695895fac9fb766be74b on mindflayer:master.
Fixes an issue where asyncio.open_connection() hangs in a replay use case (i.e. when you want to record/replay data). Since
send()
and notsendall()
is not called directly by asyncio, a proper check must be added.Note that the use case still generates some issues in SSL sessions.