diff options
author | Joseph Barker <j.barker@leeds.ac.uk> | 2019-10-29 09:47:45 +0900 |
---|---|---|
committer | Brian May <brian@linuxpenguins.xyz> | 2019-11-08 08:01:52 +1100 |
commit | 23516ebd71d6518f30a3cfadbe424481c2c13cab (patch) | |
tree | 46c1eb31def928874d21caf726fda3034a200d03 /sshuttle/options.py | |
parent | c69b9d6f4bcb0a7016ef5927493daf4a8654cefb (diff) |
Add option for latency control buffer size
This commit resolves #297, allowing the buffers used in the latency control to be changed with a command line option ‘--latency-buffer-size’.
We do this by changing a module variable in ssnet.py (similar to the MAX_CHANNEL variable) which seems to be the simplest code change without extensive hacking.
Documentation is also updated.
Diffstat (limited to 'sshuttle/options.py')
-rw-r--r-- | sshuttle/options.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sshuttle/options.py b/sshuttle/options.py index a19d5ef..62f3510 100644 --- a/sshuttle/options.py +++ b/sshuttle/options.py @@ -244,6 +244,16 @@ parser.add_argument( """ ) parser.add_argument( + "--latency-buffer-size", + metavar="SIZE", + type=int, + default=32768, + dest="latency_buffer_size", + help=""" + size of latency control buffer + """ +) +parser.add_argument( "--wrap", metavar="NUM", type=int, |