diff options
Diffstat (limited to 'paramiko/sftp_file.py')
-rw-r--r-- | paramiko/sftp_file.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/paramiko/sftp_file.py b/paramiko/sftp_file.py index 12861df7..86d9a560 100644 --- a/paramiko/sftp_file.py +++ b/paramiko/sftp_file.py @@ -457,7 +457,10 @@ class SFTPFile(BufferedFile): :param int max_concurrent_requests: The maximum number of concurrent read requests to prefetch. When this is ``None`` (the default), do not limit the number of - concurrent prefetch requests. + concurrent prefetch requests. Note: OpenSSH's sftp internally + imposes a limit of 64 concurrent requests, while Paramiko imposes + no limit by default; consider setting a limit if a file can be + successfully received with sftp but hangs with Paramiko. .. versionadded:: 1.5.1 .. versionchanged:: 1.16.0 @@ -492,7 +495,10 @@ class SFTPFile(BufferedFile): :param int max_concurrent_prefetch_requests: The maximum number of concurrent read requests to prefetch. When this is ``None`` (the default), do not limit the number of - concurrent prefetch requests. + concurrent prefetch requests. Note: OpenSSH's sftp internally + imposes a limit of 64 concurrent requests, while Paramiko imposes + no limit by default; consider setting a limit if a file can be + successfully received with sftp but hangs with Paramiko. :return: a list of blocks read, in the same order as in ``chunks`` .. versionadded:: 1.5.4 |