[New-bugs-announce] [issue17698] Setting allow_reuse_address in BaseHTTPServer has no effect.

Michael Bevilacqua-Linn report at bugs.python.org
Thu Apr 11 20:16:14 CEST 2013


New submission from Michael Bevilacqua-Linn:

Hello, 

In BaseHTTPServer line 104 is the following:

allow_reuse_address = 1    # Seems to make sense in testing environment

This appears to attempt to set SO_REUSEADDR, but it doesn't actually do anything since the attribute that needs to be set to true is actually on the superclass (TCPServer).

A tad misleading when reading the code trying to figure out how to set SO_REUSEADDR.

----------
components: Library (Lib)
messages: 186572
nosy: Michael.Bevilacqua-Linn
priority: normal
severity: normal
status: open
title: Setting allow_reuse_address in BaseHTTPServer has no effect.
type: behavior
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17698>
_______________________________________


More information about the New-bugs-announce mailing list