This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: BaseManager of multiprocessing module throws an exception if socket.setdefaulttimeout is set
Type: behavior Stage:
Components: Library (Lib) Versions: Python 2.6
process
Status: closed Resolution: duplicate
Dependencies: Superseder:
Assigned To: Nosy List: MrRagga, brian.curtin
Priority: normal Keywords:

Created on 2010-01-27 13:58 by MrRagga, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
server.py MrRagga, 2010-01-27 13:58
client.py MrRagga, 2010-01-27 14:00
Messages (3)
msg98427 - (view) Author: Jonas Weismüller (MrRagga) Date: 2010-01-27 13:58
If socket.setdefaulttimeout is set to any value (except None), the BaseManager raises an exception and the execution of the remote object fails:
Traceback (most recent call last):
  File "client.py", line 16, in <module>
    m = Manager()
  File "client.py", line 12, in __init__
    self.connect()
  File "/usr/lib/python2.6/multiprocessing/managers.py", line 474, in connect
    conn = Client(self._address, authkey=self._authkey)
  File "/usr/lib/python2.6/multiprocessing/connection.py", line 140, in Client
    answer_challenge(c, authkey)
  File "/usr/lib/python2.6/multiprocessing/connection.py", line 371, in answer_challenge
    message = connection.recv_bytes(256)         # reject large message

See the attached client.py (uploading soon) and server.py file to reproduce the error.

Python version used:
Python 2.6 (r26:66714, Jun  8 2009, 16:07:26)
[GCC 4.4.0 20090506 (Red Hat 4.4.0-4)] on linux2

Same behaviour with python version:
Python 2.6 (r26:66714, Nov  3 2009, 17:33:38)
[GCC 4.4.1 20090725 (Red Hat 4.4.1-2)] on linux2

The operating system is Fedora 11.
msg98428 - (view) Author: Jonas Weismüller (MrRagga) Date: 2010-01-27 14:00
uploading missing client file, changing the socket.setdefaulttimeout shows the issue.
msg98434 - (view) Author: Brian Curtin (brian.curtin) * (Python committer) Date: 2010-01-27 14:55
Duplicate of #6056.
History
Date User Action Args
2022-04-11 14:56:56adminsetgithub: 52043
2010-01-27 14:55:04brian.curtinsetstatus: open -> closed
priority: normal
type: crash -> behavior


nosy: + brian.curtin
messages: + msg98434
resolution: duplicate
2010-01-27 14:00:49MrRaggasetfiles: + client.py

messages: + msg98428
2010-01-27 13:58:30MrRaggacreate