diff options
author | Jeremy T. Bouse <jbouse@debian.org> | 2015-03-12 21:35:58 -0400 |
---|---|---|
committer | Jeremy T. Bouse <jbouse@debian.org> | 2015-03-12 21:35:58 -0400 |
commit | f784a533d6e1d09e89dc254f3493b491e19c94f0 (patch) | |
tree | 6079fb034538b346b999a6fefcae4b1c557713c5 /paramiko/common.py | |
parent | 941814e1efaf9a46992476e50badcecbcbfc9a41 (diff) | |
download | python-paramiko-f784a533d6e1d09e89dc254f3493b491e19c94f0.tar python-paramiko-f784a533d6e1d09e89dc254f3493b491e19c94f0.tar.gz |
Imported Upstream version 1.15.2
Diffstat (limited to 'paramiko/common.py')
-rw-r--r-- | paramiko/common.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/paramiko/common.py b/paramiko/common.py index 97b2f95..0b0cc2a 100644 --- a/paramiko/common.py +++ b/paramiko/common.py @@ -195,7 +195,11 @@ 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 +MIN_WINDOW_SIZE = 2 ** 15 + +# However, according to http://www.ietf.org/rfc/rfc4253.txt it is perfectly +# legal to accept a size much smaller, as OpenSSH client does as size 16384. +MIN_PACKET_SIZE = 2 ** 12 # Max windows size according to http://www.ietf.org/rfc/rfc4254.txt MAX_WINDOW_SIZE = 2**32 -1 |