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
b48cfa67
Kaydet (Commit)
b48cfa67
authored
Mar 30, 2009
tarafından
Jesse Noller
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Merge 70717 to 26maint
üst
e6bab480
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
0 deletions
+32
-0
connection.py
Lib/multiprocessing/connection.py
+1
-0
test_multiprocessing.py
Lib/test/test_multiprocessing.py
+24
-0
NEWS
Misc/NEWS
+7
-0
No files found.
Lib/multiprocessing/connection.py
Dosyayı görüntüle @
b48cfa67
...
...
@@ -214,6 +214,7 @@ class SocketListener(object):
'''
def
__init__
(
self
,
address
,
family
,
backlog
=
1
):
self
.
_socket
=
socket
.
socket
(
getattr
(
socket
,
family
))
self
.
_socket
.
setsockopt
(
socket
.
SOL_SOCKET
,
socket
.
SO_REUSEADDR
,
1
)
self
.
_socket
.
bind
(
address
)
self
.
_socket
.
listen
(
backlog
)
self
.
_address
=
self
.
_socket
.
getsockname
()
...
...
Lib/test/test_multiprocessing.py
Dosyayı görüntüle @
b48cfa67
...
...
@@ -1188,6 +1188,30 @@ class _TestRemoteManager(BaseTestCase):
del
queue
manager
.
shutdown
()
class
_TestManagerRestart
(
BaseTestCase
):
def
_putter
(
self
,
address
,
authkey
):
manager
=
QueueManager
(
address
=
address
,
authkey
=
authkey
,
serializer
=
SERIALIZER
)
manager
.
connect
()
queue
=
manager
.
get_queue
()
queue
.
put
(
'hello world'
)
def
test_rapid_restart
(
self
):
authkey
=
os
.
urandom
(
32
)
manager
=
QueueManager
(
address
=
(
'localhost'
,
9999
),
authkey
=
authkey
,
serializer
=
SERIALIZER
)
manager
.
start
()
p
=
self
.
Process
(
target
=
self
.
_putter
,
args
=
(
manager
.
address
,
authkey
))
p
.
start
()
queue
=
manager
.
get_queue
()
self
.
assertEqual
(
queue
.
get
(),
'hello world'
)
manager
.
shutdown
()
manager
=
QueueManager
(
address
=
(
'localhost'
,
9999
),
authkey
=
authkey
,
serializer
=
SERIALIZER
)
manager
.
start
()
#
#
#
...
...
Misc/NEWS
Dosyayı görüntüle @
b48cfa67
...
...
@@ -92,6 +92,13 @@ Core and Builtins
Library
-------
- Issue #5177: Multiprocessing's SocketListener class now uses
socket.SO_REUSEADDR on all connections so that the user no longer needs
to wait 120 seconds for the socket to expire.
- Adjusted _tkinter to compile without warnings when WITH_THREAD is not
defined (part of issue #5035).
- Issue #5561: Removed the sys.version_info shortcuts from platform's
python_version() and python_version_tuple() since they produced different
output compared to previous Python versions.
...
...
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