]> granicus.if.org Git - python/commit
Use a condition variable (threading.Event) rather than sleeps and checking a
authorNeal Norwitz <nnorwitz@gmail.com>
Sat, 26 Jan 2008 07:26:12 +0000 (07:26 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Sat, 26 Jan 2008 07:26:12 +0000 (07:26 +0000)
commit653272f0cfcdb1aa3a4c4d1656c760c504671575
treef74b323e48faf87f489c2cf5f0e1ca152914dc60
parent5be3067742f3f7fbf34dd7288d745e4754eeae1f
Use a condition variable (threading.Event) rather than sleeps and checking a
global to determine when the server is ready to be used.  This slows the test
down, but should make it correct.  There was a race condition before where the
server could have assigned a port, yet it wasn't ready to serve requests.  If
the client sent a request before the server was completely ready, it would get
an exception.  There was machinery to try to handle this condition.  All of
that should be unnecessary and removed if this change works.  A NOTE was
added as a comment about what needs to be fixed.

The buildbots will tell us if there are more errors or
if this test is now stable.
Lib/test/test_xmlrpc.py