[New-bugs-announce] [issue17698] Setting allow_reuse_address in BaseHTTPServer has no effect.
report at bugs.python.org
Thu Apr 11 20:16:14 CEST 2013
New submission from Michael Bevilacqua-Linn:
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)
title: Setting allow_reuse_address in BaseHTTPServer has no effect.
versions: Python 2.7
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce