why is there now execption for windows? trying to listen twice to the same port

News123 news1234 at free.fr
Sat Mar 20 13:11:25 EDT 2010


Terry Reedy wrote:
> On 3/20/2010 10:52 AM, News123 wrote:
>> Hi Irmen,
>>
>>
>> Irmen de Jong wrote:
>>> On 20-3-2010 14:38, News123 wrote:
>>>> I'm having a small multiprocessing manager:
>>>>
>>>> # ##########################
>>>> import socket,sys
>>>> from multiprocessing.managers import BaseManager
>>>>
>>>> mngr = BaseManager(address=('127.0.0.1',8089),authkey='verysecret')
>>>> try:
>>>>       srvr = mngr.get_server()
>>>> except socket.error as e:
>>>>       print "probably address already in use"
>>>>       sys.exit()
>>>> print "serving"
>>>> srvr.serve_forever()
>>>>
>>>> Under Windows however the program can be started twice.
>>>> and will print twice "serving". This surprises me
>>>
. . .
>>
>> Then I think, that I should report it either as bug / enhancement
> 
> I agree. I would guess that the difference is not intentional.
> 
>> request. However I am not at all aware of the issue reporting process
>> concerning python. (special site / module developer, PEP . . . )
> 
> bugs.python.org
> 
Thanks,


I created an account and submitted the issue


N



More information about the Python-list mailing list