Staging
v0.5.0
https://github.com/python/cpython
Revision 8fa398d5cecec80990c5642b081f52cbbc6a05eb authored by Miss Islington (bot) on 07 June 2018, 22:49:34 UTC, committed by Victor Stinner on 07 June 2018, 22:49:34 UTC
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>
1 parent 0aee3be
History
Tip revision: 8fa398d5cecec80990c5642b081f52cbbc6a05eb authored by Miss Islington (bot) on 07 June 2018, 22:49:34 UTC
bpo-33694: Fix race condition in asyncio proactor (GH-7498) (GH-7499)
Tip revision: 8fa398d
File Mode Size
.github
.vsts
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Programs
Python
Tools
m4
.gitattributes -rw-r--r-- 772 bytes
.gitignore -rw-r--r-- 1.5 KB
.travis.yml -rw-r--r-- 5.7 KB
LICENSE -rw-r--r-- 12.5 KB
Makefile.pre.in -rw-r--r-- 61.1 KB
README.rst -rw-r--r-- 9.3 KB
aclocal.m4 -rw-r--r-- 10.7 KB
config.guess -rwxr-xr-x 43.1 KB
config.sub -rwxr-xr-x 35.4 KB
configure -rwxr-xr-x 485.1 KB
configure.ac -rw-r--r-- 161.9 KB
install-sh -rwxr-xr-x 7.0 KB
pyconfig.h.in -rw-r--r-- 42.2 KB
setup.py -rw-r--r-- 99.5 KB

README.rst

back to top