summaryrefslogtreecommitdiffstats
path: root/ssh.py
diff options
context:
space:
mode:
authorRoger <wenrui@gmail.com>2011-01-11 20:52:02 +0800
committerAvery Pennarun <apenwarr@gmail.com>2011-01-25 21:05:13 -0800
commitfdb7c9b9953deead6dcaff5a2aa13a581180fabe (patch)
tree55498e42ff75dca2e11c84f59bac1f78616156d0 /ssh.py
parent675f19f57e23a640cea64b79f2c368f233f6660b (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.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/ssh.py b/ssh.py
index ac7f411..9d3a8eb 100644
--- a/ssh.py
+++ b/ssh.py
@@ -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())