slackbuilds_ponce/development/mysql-workbench/mysql-workbench-paramiko.patch
Willy Sudiarto Raharjo 58dbf1b88d development/mysql-workbench: Updated for version 6.2.4.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2014-11-22 16:01:22 +07:00

22 lines
1.1 KiB
Diff

diff --git a/plugins/wb.admin/backend/wb_admin_ssh.py b/plugins/wb.admin/backend/wb_admin_ssh.py
--- a/plugins/wb.admin/backend/wb_admin_ssh.py
+++ b/plugins/wb.admin/backend/wb_admin_ssh.py
@@ -88,6 +88,9 @@ if paramiko and server_version_str2tuple
if (server_version_str2tuple(paramiko.__version__) <= (1, 14, 99)):
m.add_int(self.window_size)
m.add_int(self.max_packet_size)
+ else:
+ m.add_int(self.default_window_size)
+ m.add_int(self.default_max_packet_size)
if (kind == 'forwarded-tcpip') or (kind == 'direct-tcpip'):
m.add_string(dest_addr[0])
m.add_int(dest_addr[1])
@@ -103,6 +106,8 @@ if paramiko and server_version_str2tuple
chan._set_transport(self)
if (server_version_str2tuple(paramiko.__version__) <= (1, 14, 99)):
chan._set_window(self.window_size, self.max_packet_size)
+ else:
+ chan._set_window(self.default_window_size, self.default_max_packet_size)
finally:
self.lock.release()
self._send_user_message(m)