summaryrefslogtreecommitdiff
path: root/development/mysql-workbench/mysql-workbench-paramiko.patch
diff options
context:
space:
mode:
Diffstat (limited to 'development/mysql-workbench/mysql-workbench-paramiko.patch')
-rw-r--r--development/mysql-workbench/mysql-workbench-paramiko.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/development/mysql-workbench/mysql-workbench-paramiko.patch b/development/mysql-workbench/mysql-workbench-paramiko.patch
new file mode 100644
index 0000000000..4c8196dd79
--- /dev/null
+++ b/development/mysql-workbench/mysql-workbench-paramiko.patch
@@ -0,0 +1,22 @@
+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)