From 4188f66bf70f575b6b2ead4f2d38eeb529b1d55b Mon Sep 17 00:00:00 2001 From: Karl Chen Date: Fri, 4 Jun 2004 13:33:04 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=3505 --- checkin_notes | 5 +++++ test/testbase.py | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/checkin_notes b/checkin_notes index a8dd9f8b51..2f093aa49e 100755 --- a/checkin_notes +++ b/checkin_notes @@ -13014,3 +13014,8 @@ Karl 2004-04-04 py/Boinc/ setup_project.py + - changed the default delay between requests for ResultMeter from 0.1 to + 0.5 - this should help MySQL servers that disconnect under load. Also + added a message on how to change it. + + test/tesetbase.py diff --git a/test/testbase.py b/test/testbase.py index 0c8c1de25a..9d01ad3e27 100644 --- a/test/testbase.py +++ b/test/testbase.py @@ -631,8 +631,14 @@ class Work: run_tool(cmd) +RESULT_METER_DELAY = 0.5 +# Note: if test script errors with: +# _mysql_exceptions.OperationalError: 2013, 'Lost connection to MySQL server +# during query' +# Then your mysql server can't handle the load -- increase the RESULT_METER_DELAY + class ResultMeter: - def __init__(self, func, args=[], delay=.1): + def __init__(self, func, args=[], delay=RESULT_METER_DELAY): '''Forks to print a progress meter''' self.pid = os.fork() if self.pid: