ftpd: update docs, point to Twisted ticket for the proposed patch

This commit is contained in:
Brian Warner 2009-07-31 11:32:26 -07:00
parent 0d0e0ba2fb
commit ad45511156
2 changed files with 7 additions and 5 deletions

View File

@ -145,10 +145,11 @@ library that is frequently installed as /usr/lib/libcryptopp.a, to avoid
problems with non-alphanumerics in filenames).
The FTP server requires code in Twisted that enables asynchronous closing of
file-upload operations. This code was not in the Twisted-8.1.0 release, and
has not been committed to SVN trunk as of r24943. So it may be necessary to
apply the following patch. The Tahoe node refuse to start the FTP server if
it detects that this patch has not been applied.
file-upload operations. This code was not in the Twisted-8.2.0 release, and
has not been committed to SVN trunk as of r27213 (see
http://twistedmatrix.com/trac/ticket/3462 for details). So it may be
necessary to apply the following patch. The Tahoe node will refuse to start
the FTP server if it detects that this patch has not been applied.
Index: twisted/protocols/ftp.py
===================================================================

View File

@ -289,7 +289,8 @@ class FTPServer(service.MultiService):
service.MultiService.__init__(self)
# make sure we're using a patched Twisted that uses IWriteFile.close:
# see docs/frontends/ftp.txt for details.
# see docs/frontends/FTP-and-SFTP.txt and
# http://twistedmatrix.com/trac/ticket/3462 for details.
assert "close" in ftp.IWriteFile.names(), "your twisted is lacking"
r = Dispatcher(client)