[Checkins] SVN: gocept.selenium/branches/janjaapdriessen-wsgi/src/gocept/selenium/ Mark the server thread as a daemon in order to properly stop it. (I was running into stuck threads on selenium test failures and this seems to solve it).
Jan-Jaap Driessen
jdriessen at thehealthagency.com
Fri Nov 19 07:04:23 EST 2010
Log message for revision 118487:
Mark the server thread as a daemon in order to properly stop it. (I was running into stuck threads on selenium test failures and this seems to solve it).
Changed:
U gocept.selenium/branches/janjaapdriessen-wsgi/src/gocept/selenium/static/__init__.py
U gocept.selenium/branches/janjaapdriessen-wsgi/src/gocept/selenium/wsgi/__init__.py
-=-
Modified: gocept.selenium/branches/janjaapdriessen-wsgi/src/gocept/selenium/static/__init__.py
===================================================================
--- gocept.selenium/branches/janjaapdriessen-wsgi/src/gocept/selenium/static/__init__.py 2010-11-19 11:05:54 UTC (rev 118486)
+++ gocept.selenium/branches/janjaapdriessen-wsgi/src/gocept/selenium/static/__init__.py 2010-11-19 12:04:23 UTC (rev 118487)
@@ -90,6 +90,7 @@
(self.host, self.port), StaticFileRequestHandler)
self.server_thread = threading.Thread(
target=self.server.serve_until_shutdown)
+ self.server_thread.daemon = True
self.server_thread.start()
# Wait a little as it sometimes takes a while to get the server
# started.
Modified: gocept.selenium/branches/janjaapdriessen-wsgi/src/gocept/selenium/wsgi/__init__.py
===================================================================
--- gocept.selenium/branches/janjaapdriessen-wsgi/src/gocept/selenium/wsgi/__init__.py 2010-11-19 11:05:54 UTC (rev 118486)
+++ gocept.selenium/branches/janjaapdriessen-wsgi/src/gocept/selenium/wsgi/__init__.py 2010-11-19 12:04:23 UTC (rev 118487)
@@ -42,6 +42,7 @@
self.http.set_app(self.application)
self.thread = threading.Thread(target=self.http.serve_forever)
+ self.thread.daemon = True
self.thread.start()
def tearDown(self):
More information about the checkins
mailing list