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

SourceForge.net noreply at sourceforge.net
Wed Jun 30 07:14:58 EDT 2004


Patches item #982681, was opened at 2004-06-30 11:14
Message generated for change (Comment added) made by garth42
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: Open
Resolution: None
Priority: 5
Submitted By: Garth Bushell (garth42)
Assigned to: Nobody/Anonymous (nobody)
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: Garth Bushell (garth42)
Date: 2004-06-30 11: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