Author jon_dee
Recipients jon_dee
Date 2009-02-07.14:13:02
SpamBayes Score 3.02148e-05
Marked as misclassified No
Message-id <1234015984.6.0.0454721510443.issue5177@psf.upfronthosting.co.za>
In-reply-to
Content
Without this flag it is necessary to wait for e.g. 120s after closing
down a 'BaseManager' server before restarting, due to the socket being
in the TIME_WAIT state. 

Example error, which occurs if a server is started, data transmitted
down the socket, the server shut down, then restarted:

     File "/usr/local/lib/python2.6/multiprocessing/connection.py", line
220, in __init__
        self._socket.bind(address)
     File "<string>", line 1, in bind
        error: [Errno 48] Address already in use


I added (locally):
     self._socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)

to SocketListener.__init__, and it resolves the issue.
History
Date User Action Args
2009-02-07 14:13:04jon_deesetrecipients: + jon_dee
2009-02-07 14:13:04jon_deesetmessageid: <1234015984.6.0.0454721510443.issue5177@psf.upfronthosting.co.za>
2009-02-07 14:13:03jon_deelinkissue5177 messages
2009-02-07 14:13:02jon_deecreate