This should fix #175, and also bring us closer to the rfc: http://www.ietf.org/rfc/rfc4254.txt
It changes the default sizes for window and packet in accordance to what openssh is doing. It also adds a few more constants and exposes the possibility to set window and paket sizes through the api in several places.
Change window and packet size to match opensshs'.
Update tests to match the new numbers.
Rename max_packet_size and window_size.
This is to indicate that they should be seen as defaults and can
Add possibility to set default sizes.
This change adds two new parameters to the constructor of the
Transport class. Letting the user set the default windows size and
default max packet size for the instance.
Support specyfiying window/packet size per session
Also update the documentation about values and the adverse effects
that changing them might create.
Expose the ability to set window/packet for sftp.
Bump the MIN_PACKET_SIZE to what's in the RFC.
Add a MAX_WINDOW_SIZE constant.
Add a utility method for value clamping.
Add sanitation methods for window and packet size.
Move window and packet constants.
Centralise them to the common module to avoid import cycles.
Also add constants for default values and use them in the
Coverage decreased (-0.09%) when pulling c45b392 on lndbrg:window-and-packet-fixes into 991d56b on paramiko:master.
Use the new packet sanitize method in channel.
Coverage decreased (-0.06%) when pulling b0ffd7c on lndbrg:window-and-packet-fixes into 991d56b on paramiko:master.
Changelog re #372