summaryrefslogtreecommitdiff
path: root/paramiko/common.py
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2014-09-08 15:59:05 -0700
committerJeff Forcier <jeff@bitprophet.org>2014-09-08 15:59:05 -0700
commit752507a2978b0c6091ee737cd37ba1cb690926a2 (patch)
tree2610670fc4edd07ae96851c4947a3c69d360cb88 /paramiko/common.py
parentb076c10d00ee2cb4d465291a4ef0a4be9f048d9a (diff)
parentde391e88e0a7e75cd977f162a883aa5ffdbdc591 (diff)
downloadparamiko-752507a2978b0c6091ee737cd37ba1cb690926a2.tar.gz
Merge branch 'master' into 267-int
Conflicts: paramiko/client.py paramiko/transport.py sites/www/changelog.rst
Diffstat (limited to 'paramiko/common.py')
-rw-r--r--paramiko/common.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/paramiko/common.py b/paramiko/common.py
index 22ee8810..97b2f958 100644
--- a/paramiko/common.py
+++ b/paramiko/common.py
@@ -188,3 +188,14 @@ CRITICAL = logging.CRITICAL
# Common IO/select/etc sleep period, in seconds
io_sleep = 0.01
+
+DEFAULT_WINDOW_SIZE = 64 * 2 ** 15
+DEFAULT_MAX_PACKET_SIZE = 2 ** 15
+
+# lower bound on the max packet size we'll accept from the remote host
+# Minimum packet size is 32768 bytes according to
+# http://www.ietf.org/rfc/rfc4254.txt
+MIN_PACKET_SIZE = 2 ** 15
+
+# Max windows size according to http://www.ietf.org/rfc/rfc4254.txt
+MAX_WINDOW_SIZE = 2**32 -1