Issue 17698: Setting allow_reuse_address in BaseHTTPServer has no effect. (original) (raw)
Issue17698
Created on 2013-04-11 18:16 by Michael.Bevilacqua-Linn, last changed 2022-04-11 14:57 by admin. This issue is now closed.
Messages (3) | ||
---|---|---|
msg186572 - (view) | Author: Michael Bevilacqua-Linn (Michael.Bevilacqua-Linn) | Date: 2013-04-11 18:16 |
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. | ||
msg186573 - (view) | Author: R. David Murray (r.david.murray) * ![]() |
Date: 2013-04-11 18:29 |
Unless I'm misunderstanding something, that assignment is doing exactly what it intends to do, and is documented as being a supported API in TCPServer: changing the value of that class attribute to a true value for the BaseHTTPServer class. (In particular, server_bind calls TCPServer.server_bind, passing it self.) Can you explain more about what behavior you are seeing as the bug? | ||
msg186582 - (view) | Author: Michael Bevilacqua-Linn (Michael.Bevilacqua-Linn) | Date: 2013-04-11 19:27 |
Ack yes you're right, there was a bug in my test case... Sorry about that. |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:57:44 | admin | set | github: 61898 |
2013-04-11 19:32:02 | r.david.murray | set | status: open -> closedresolution: not a bugstage: resolved |
2013-04-11 19:27:04 | Michael.Bevilacqua-Linn | set | messages: + |
2013-04-11 18:29:41 | r.david.murray | set | nosy: + r.david.murraymessages: + |
2013-04-11 18:16:14 | Michael.Bevilacqua-Linn | create |