summaryrefslogtreecommitdiff
path: root/paramiko/sftp.py
diff options
context:
space:
mode:
authorRobey Pointer <robey@lag.net>2004-05-17 00:43:43 +0000
committerRobey Pointer <robey@lag.net>2004-05-17 00:43:43 +0000
commit36a867a01767485106e91d8046314bd8f45331f8 (patch)
treeb8aeb4ff632c156f15de2ac05f420c12662714d8 /paramiko/sftp.py
parent4d774d62a5f32be58e56e7aedba685f353da31e8 (diff)
downloadparamiko-36a867a01767485106e91d8046314bd8f45331f8.tar.gz
[project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-51]
fix utf8, raise packet size, log exceptions, be more lax with sfp servers explicitly import utf8 encodings for "freezing" (and also because not all platforms come with utf8, apparently). raise the max acceptable packet size to 8kB, cuz 2kB was too low. log exceptions at error level instead of debug level. and don't reject older sftp servers.
Diffstat (limited to 'paramiko/sftp.py')
-rw-r--r--paramiko/sftp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/paramiko/sftp.py b/paramiko/sftp.py
index 9a26298b..0e7f48f7 100644
--- a/paramiko/sftp.py
+++ b/paramiko/sftp.py
@@ -194,8 +194,8 @@ class SFTP (object):
if t != CMD_VERSION:
raise SFTPError('Incompatible sftp protocol')
version = struct.unpack('>I', data[:4])[0]
- if version != VERSION:
- raise SFTPError('Incompatible sftp protocol')
+# if version != VERSION:
+# raise SFTPError('Incompatible sftp protocol')
def from_transport(selfclass, t):
chan = t.open_session()