[Zodb-checkins] CVS: ZODB3/ZEO - runzeo.py:1.8

Guido van Rossum guido@python.org
Mon, 20 Jan 2003 16:31:46 -0500


Update of /cvs-repository/ZODB3/ZEO
In directory cvs.zope.org:/tmp/cvs-serv3768

Modified Files:
	runzeo.py 
Log Message:
Add a command line option to set transaction_timeout.


=== ZODB3/ZEO/runzeo.py 1.7 => 1.8 ===
--- ZODB3/ZEO/runzeo.py:1.7	Mon Jan 20 11:32:43 2003
+++ ZODB3/ZEO/runzeo.py	Mon Jan 20 16:31:42 2003
@@ -21,6 +21,7 @@
 -a/--address ADDRESS -- server address of the form PORT, HOST:PORT, or PATH
                         (a PATH must contain at least one "/")
 -f/--filename FILENAME -- filename for FileStorage
+-t/--timeout TIMEOUT -- transaction timeout in secondes (default no timeout)
 -h/--help -- print this usage message and exit
 -m/--monitor ADDRESS -- address of monitor server ([HOST:]PORT or PATH)
 
@@ -84,7 +85,8 @@
         self.add("read_only", "zeo.read_only", default=0)
         self.add("invalidation_queue_size", "zeo.invalidation_queue_size",
                  default=100)
-        self.add("transaction_timeout", "zeo.transaction_timeout")
+        self.add("transaction_timeout", "zeo.transaction_timeout",
+                 "t:", "timeout=", float)
         self.add("monitor_address", None, "m:", "monitor=",
                  self.handle_monitor_address)