Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
4e02f8f4
Kaydet (Commit)
4e02f8f4
authored
Mar 02, 2015
tarafından
Steve Dower
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Issue #18382: Zero-length messages are consumed by ReadFile on Windows 8 and later
üst
3e96f324
3f9e3810
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
connection.py
Lib/multiprocessing/connection.py
+11
-2
No files found.
Lib/multiprocessing/connection.py
Dosyayı görüntüle @
4e02f8f4
...
@@ -829,7 +829,7 @@ if sys.platform == 'win32':
...
@@ -829,7 +829,7 @@ if sys.platform == 'win32':
try
:
try
:
ov
,
err
=
_winapi
.
ReadFile
(
fileno
(),
0
,
True
)
ov
,
err
=
_winapi
.
ReadFile
(
fileno
(),
0
,
True
)
except
OSError
as
e
:
except
OSError
as
e
:
err
=
e
.
winerror
ov
,
err
=
None
,
e
.
winerror
if
err
not
in
_ready_errors
:
if
err
not
in
_ready_errors
:
raise
raise
if
err
==
_winapi
.
ERROR_IO_PENDING
:
if
err
==
_winapi
.
ERROR_IO_PENDING
:
...
@@ -838,7 +838,16 @@ if sys.platform == 'win32':
...
@@ -838,7 +838,16 @@ if sys.platform == 'win32':
else
:
else
:
# If o.fileno() is an overlapped pipe handle and
# If o.fileno() is an overlapped pipe handle and
# err == 0 then there is a zero length message
# err == 0 then there is a zero length message
# in the pipe, but it HAS NOT been consumed.
# in the pipe, but it HAS NOT been consumed...
if
ov
and
sys
.
getwindowsversion
()[:
2
]
>=
(
6
,
2
):
# ... except on Windows 8 and later, where
# the message HAS been consumed.
try
:
_
,
err
=
ov
.
GetOverlappedResult
(
False
)
except
OSError
as
e
:
err
=
e
.
winerror
if
not
err
and
hasattr
(
o
,
'_got_empty_message'
):
o
.
_got_empty_message
=
True
ready_objects
.
add
(
o
)
ready_objects
.
add
(
o
)
timeout
=
0
timeout
=
0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment