diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2014-09-08 15:59:05 -0700 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2014-09-08 15:59:05 -0700 |
commit | 752507a2978b0c6091ee737cd37ba1cb690926a2 (patch) | |
tree | 2610670fc4edd07ae96851c4947a3c69d360cb88 /paramiko/common.py | |
parent | b076c10d00ee2cb4d465291a4ef0a4be9f048d9a (diff) | |
parent | de391e88e0a7e75cd977f162a883aa5ffdbdc591 (diff) | |
download | paramiko-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.py | 11 |
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 |