Commit 39b38b8c authored by Guido van Rossum's avatar Guido van Rossum

Add a command line option to set transaction_timeout.

parent b68b97a7
...@@ -21,6 +21,7 @@ Options: ...@@ -21,6 +21,7 @@ Options:
-a/--address ADDRESS -- server address of the form PORT, HOST:PORT, or PATH -a/--address ADDRESS -- server address of the form PORT, HOST:PORT, or PATH
(a PATH must contain at least one "/") (a PATH must contain at least one "/")
-f/--filename FILENAME -- filename for FileStorage -f/--filename FILENAME -- filename for FileStorage
-t/--timeout TIMEOUT -- transaction timeout in secondes (default no timeout)
-h/--help -- print this usage message and exit -h/--help -- print this usage message and exit
-m/--monitor ADDRESS -- address of monitor server ([HOST:]PORT or PATH) -m/--monitor ADDRESS -- address of monitor server ([HOST:]PORT or PATH)
...@@ -84,7 +85,8 @@ class ZEOOptionsMixin: ...@@ -84,7 +85,8 @@ class ZEOOptionsMixin:
self.add("read_only", "zeo.read_only", default=0) self.add("read_only", "zeo.read_only", default=0)
self.add("invalidation_queue_size", "zeo.invalidation_queue_size", self.add("invalidation_queue_size", "zeo.invalidation_queue_size",
default=100) 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.add("monitor_address", None, "m:", "monitor=",
self.handle_monitor_address) self.handle_monitor_address)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment