From 807dac944e4c0ce172a5ced5bd12ee997880290d Mon Sep 17 00:00:00 2001 From: davidsarah <> Date: Sat, 8 Jan 2011 05:19:46 +0000 Subject: [PATCH] twisted rekeying bug [Imported from Trac: page SftpFrontend, version 58] --- SftpFrontend.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SftpFrontend.md b/SftpFrontend.md index f21c48a..26bbc89 100644 --- a/SftpFrontend.md +++ b/SftpFrontend.md @@ -24,6 +24,8 @@ See the last section of [docs/frontends/FTP-and-SFTP.rst](http://tahoe-lafs.org/ The '`ctime`' and '`mtime`' attributes will always be the same, and are set from the Tahoe `linkmotime` timestamp, which is changed only when the link from the parent directory is modified (see the ['About the metadata' section of webapi.rst](http://tahoe-lafs.org/trac/tahoe-lafs/browser/docs/frontends/webapi.rst#about-the-metadata)). These fields are not updated when the contents of a mutable file are changed. The SFTP protocol and the server are able to represent dates up to the year 2106, but some clients may print dates incorrectly after 2037. +Versions of Twisted up to and including 10.2 have [bug in support for rekeying ]a. This might cause a hang or 100% CPU usage when a client tries to rekey. Depending on the client, rekeying may be triggered based on a time interval or the amount of data sent; this problem will typically only affect long-lived connections or very large files. Some clients have options to disable rekeying (see below for openssh, sshfs and WinSCP). + # Unicode filenames @@ -82,5 +84,6 @@ In the WinSCP Login dialog, the following options need to be set (some require ' * In the Environment section, set 'UTF-8 encoding for filenames' to 'On'. * In the Connection section, set 'Server response timeout' to the maximum 6000 seconds. + * In the Key exchange section under SSH, set both 'Max minutes before rekey' and 'Max data before rekey' to 0. (This works around a potential bug in Twisted's SSH implementation by disabling rekeying.) Note that these options are not persistent unless you save them as a 'Stored session', together with the host name, username, etc.