mindflayer / python-mocket

a socket mock framework - for all kinds of socket animals, web-clients included
BSD 3-Clause "New" or "Revised" License
280 stars 42 forks source link

Fix for asyncio.open_connection() #144

Closed fvigo closed 3 years ago

fvigo commented 3 years ago

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.

coveralls commented 3 years ago

Coverage Status

Coverage remained the same at 98.705% when pulling abeab4446b7c812602b6890f6f4705dca7859057 on fvigo:asyncio_send into 455513beeab5eb8e8ce1695895fac9fb766be74b on mindflayer:master.