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
0ee84e04
Kaydet (Commit)
0ee84e04
authored
Ock 13, 2013
tarafından
Richard Oudkerk
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Issue #16955: Fix the poll() method for multiprocessing's socket
connections on Windows.
üst
9e189f0a
ed9e06cb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
1 deletion
+15
-1
connection.py
Lib/multiprocessing/connection.py
+1
-1
test_multiprocessing.py
Lib/test/test_multiprocessing.py
+11
-0
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/multiprocessing/connection.py
Dosyayı görüntüle @
0ee84e04
...
@@ -405,7 +405,7 @@ class Connection(_ConnectionBase):
...
@@ -405,7 +405,7 @@ class Connection(_ConnectionBase):
return
self
.
_recv
(
size
)
return
self
.
_recv
(
size
)
def
_poll
(
self
,
timeout
):
def
_poll
(
self
,
timeout
):
r
=
wait
([
self
.
_handle
],
timeout
)
r
=
wait
([
self
],
timeout
)
return
bool
(
r
)
return
bool
(
r
)
...
...
Lib/test/test_multiprocessing.py
Dosyayı görüntüle @
0ee84e04
...
@@ -2358,6 +2358,17 @@ class _TestListenerClient(BaseTestCase):
...
@@ -2358,6 +2358,17 @@ class _TestListenerClient(BaseTestCase):
p
.
join
()
p
.
join
()
l
.
close
()
l
.
close
()
def
test_issue16955
(
self
):
for
fam
in
self
.
connection
.
families
:
l
=
self
.
connection
.
Listener
(
family
=
fam
)
c
=
self
.
connection
.
Client
(
l
.
address
)
a
=
l
.
accept
()
a
.
send_bytes
(
b
"hello"
)
self
.
assertTrue
(
c
.
poll
(
1
))
a
.
close
()
c
.
close
()
l
.
close
()
class
_TestPoll
(
unittest
.
TestCase
):
class
_TestPoll
(
unittest
.
TestCase
):
ALLOWED_TYPES
=
(
'processes'
,
'threads'
)
ALLOWED_TYPES
=
(
'processes'
,
'threads'
)
...
...
Misc/NEWS
Dosyayı görüntüle @
0ee84e04
...
@@ -217,6 +217,9 @@ Core and Builtins
...
@@ -217,6 +217,9 @@ Core and Builtins
Library
Library
-------
-------
- Issue #16955: Fix the poll() method for multiprocessing'
s
socket
connections
on
Windows
.
-
SSLContext
.
load_dh_params
()
now
properly
closes
the
input
file
.
-
SSLContext
.
load_dh_params
()
now
properly
closes
the
input
file
.
-
Issue
#
16829
:
IDLE
printing
no
longer
fails
if
there
are
spaces
or
other
-
Issue
#
16829
:
IDLE
printing
no
longer
fails
if
there
are
spaces
or
other
...
...
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