diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-06-07 22:49:34 (GMT) |
---|---|---|
committer | Victor Stinner <vstinner@redhat.com> | 2018-06-07 22:49:34 (GMT) |
commit | 8fa398d5cecec80990c5642b081f52cbbc6a05eb (patch) | |
tree | 86bc015d3012af82e3be8d0150406c4bdd52c19b /Lib/email/errors.py | |
parent | 0aee3bea197af51de3a30e4665eaa2971a681fbb (diff) | |
download | cpython-8fa398d5cecec80990c5642b081f52cbbc6a05eb.zip cpython-8fa398d5cecec80990c5642b081f52cbbc6a05eb.tar.gz cpython-8fa398d5cecec80990c5642b081f52cbbc6a05eb.tar.bz2 |
bpo-33694: Fix race condition in asyncio proactor (GH-7498) (GH-7499)
The cancellation of an overlapped WSARecv() has a race condition
which causes data loss because of the current implementation of
proactor in asyncio.
No longer cancel overlapped WSARecv() in _ProactorReadPipeTransport
to work around the race condition.
Remove the optimized recv_into() implementation to get simple
implementation of pause_reading() using the single _pending_data
attribute.
Move _feed_data_to_bufferred_proto() to protocols.py.
Remove set_protocol() method which became useless.
(cherry picked from commit 79790bc35fe722a49977b52647f9b5fe1deda2b7)
Co-authored-by: Victor Stinner <vstinner@redhat.com>
Diffstat (limited to 'Lib/email/errors.py')
0 files changed, 0 insertions, 0 deletions