Skip to content

Commit

Permalink
Log "clamped" value of self.out_max_packet_size
Browse files Browse the repository at this point in the history
This log message misleads one to believe a maximum packet
size, such as 16384 requested by OpenSSH has been honored,
when in fact it is "clamped" to 32768.
  • Loading branch information
jquast authored and bitprophet committed Dec 18, 2014
1 parent 8e1417f commit 25e3c0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paramiko/channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,7 @@ def _set_remote_channel(self, chanid, window_size, max_packet_size):
self.out_max_packet_size = self.transport. \
_sanitize_packet_size(max_packet_size)
self.active = 1
self._log(DEBUG, 'Max packet out: %d bytes' % max_packet_size)
self._log(DEBUG, 'Max packet out: %d bytes' % self.out_max_packet_size)

def _request_success(self, m):
self._log(DEBUG, 'Sesch channel %d request ok' % self.chanid)
Expand Down

0 comments on commit 25e3c0c

Please sign in to comment.