diff options
author | Roger <wenrui@gmail.com> | 2011-01-11 20:52:02 +0800 |
---|---|---|
committer | Avery Pennarun <apenwarr@gmail.com> | 2011-01-25 21:05:13 -0800 |
commit | fdb7c9b9953deead6dcaff5a2aa13a581180fabe (patch) | |
tree | 55498e42ff75dca2e11c84f59bac1f78616156d0 /ssh.py | |
parent | 675f19f57e23a640cea64b79f2c368f233f6660b (diff) |
new option to disable fullness checking
On high latency links, the PING/PONG round trip triggered by fullness
checking could kill the bandwidth. Disabling it could result in >10x
bandwidth increase in some setups where the existing latency is already high
and the available bandwidth is also high.
Diffstat (limited to 'ssh.py')
-rw-r--r-- | ssh.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,6 +1,6 @@ import sys, os, re, socket, zlib import compat.ssubprocess as ssubprocess -import helpers +import helpers, ssnet from helpers import * @@ -63,8 +63,9 @@ def connect(ssh_cmd, rhostport, python, stderr): import sys; skip_imports=1; verbosity=%d; + no_fullness0=%d; exec compile(sys.stdin.read(%d), "assembler.py", "exec") - """ % (helpers.verbose or 0, len(content)) + """ % (helpers.verbose or 0, ssnet.no_fullness or 0, len(content)) pyscript = re.sub(r'\s+', ' ', pyscript.strip()) |