[Patches] [ python-Patches-982681 ] asyncore.dispatcher.set_reuse_addr() is broken on windows

SourceForge.net noreply at sourceforge.net
Sat Jul 10 17:52:38 CEST 2004


Patches item #982681, was opened at 2004-06-30 07:14
Message generated for change (Comment added) made by akuchling
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=982681&group_id=5470

Category: Library (Lib)
Group: Python 2.4
>Status: Closed
>Resolution: Accepted
Priority: 5
Submitted By: Garth Bushell (garth42)
>Assigned to: A.M. Kuchling (akuchling)
Summary: asyncore.dispatcher.set_reuse_addr() is broken on windows

Initial Comment:
asyncore.dispatcher.set_reuse_addr()  uses
socket.SO_REUSEADDR to allow reuse of same address
without having to wait. 

On windows this also allows multiple programs to bind
to the same socket adress. What is probably needed is
to use  SO_EXCLUSIVEADDRUSE on windows which has the
same meaning as SO_REUSEADDR on all other platforms. 

This will stop people running the server multiple times
and getting wierd results or two programs sharing the
same port without realising.





----------------------------------------------------------------------

>Comment By: A.M. Kuchling (akuchling)
Date: 2004-07-10 11:52

Message:
Logged In: YES 
user_id=11375

Checked into CVS; thanks.



----------------------------------------------------------------------

Comment By: Garth Bushell (garth42)
Date: 2004-06-30 07:14

Message:
Logged In: YES 
user_id=45280

this depends on patch #982665

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=982681&group_id=5470


More information about the Patches mailing list