Bugs item #1595742, was opened at 2006-11-13 11:54
Message generated for change (Settings changed) made by collinwinter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1595742&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
>Group: Python 2.6
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Peter Parente (parente)
Assigned to: Nobody/Anonymous (nobody)
Summary: SocketServer allow_reuse_address checked in constructor

Initial Comment:
Python 2.4.3 (#1, Oct  1 2006, 18:00:19)
[GCC 4.1.1 20060928 (Red Hat 4.1.1-28)] on linux2

The documentation in the SocketServer class indicates
that the allow_reuse_address flag may be set on a
SocketServer subclass *or instance.* However, the flag
is read in a call to the server_bind() from the
constructor of the server object. Therefore, setting
the flag on a created instance has no effect. This is
problematic when trying to set the flag on
SimpleXMLRPCServer instances, for instance, which are
often not subclassed.

This flag should probably become one of the keyword
arguments in the constructor of a SocketServer object.

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

>Comment By: Collin Winter (collinwinter)
Date: 2007-03-10 09:44

Message:
Logged In: YES 
user_id=1344176
Originator: NO

Fixed by applying patch #1599845 as r54262. Thanks for your bug report!

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

Comment By: Peter Parente (parente)
Date: 2006-11-20 12:16

Message:
Logged In: YES 
user_id=624776
Originator: YES

Submitted as patch #1599845 in patch tracker.

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

Comment By: Peter Parente (parente)
Date: 2006-11-20 12:07

Message:
Logged In: YES 
user_id=624776
Originator: YES

The SimpleXMLRPCServer class in SVN HEAD now has allow_reuse_address set
to True by default. This mimics the implementation of the BaseHTTPServer
class which also has it set to True. Therefore, this patch should probably
not concentrate on just making allow_reuse_address flag accessible on
instances via __init__. Instead, the patch should probably be for TCPServer
and specify whether server_bind and server_activate are called
automatically or not by the constructor. The default behavior will remain
the same as it is now. Specifying False on this flag will allow a developer
to set the various variables on a TCPServer server instance before invoking
bind/activate manually.

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

Comment By: Peter Parente (parente)
Date: 2006-11-16 22:28

Message:
Logged In: YES 
user_id=624776
Originator: YES

Will do.

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

Comment By: Georg Brandl (gbrandl)
Date: 2006-11-15 12:34

Message:
Logged In: YES 
user_id=849994
Originator: NO

Would you want to work on a patch for this?

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1595742&group_id=5470
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to