Changeset 487:e68724ac688d for ftputil.txt
- Timestamp:
- 2006-02-06 22:39:20 (5 years ago)
- Branch:
- default
- convert_revision:
- svn:778c30c8-61e0-0310-89d4-fe2f97a467b2/trunk@506
- Files:
-
- 1 modified
-
ftputil.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ftputil.txt
r485 r487 654 654 and use of remote file-like objects. 655 655 656 - ``keep_alive()`` 656 .. _`FTPHost.keep_alive`: 657 658 - ``keep_alive(also_files=True)`` 657 659 658 660 Do something without side effects to hold the connection to the FTP 659 661 server. This should be used to prevent server timeouts after several 660 662 minutes of inactivity. 663 664 Note that not only an ``FTPHost`` object but also *each* of the 665 file-objects made from it has its own connection to the FTP server, 666 so all of the connections must be kept alive. Use the default 667 setting, ``True``, for ``also_files`` to propagate the refresh to 668 all open file-like objects made from this ``FTPHost`` instance. 669 670 However, be careful with the default parameter in multi-threaded 671 applications. 661 672 662 673 … … 711 722 server. This should be used to prevent server timeouts after several 712 723 minutes of inactivity. 724 725 Note that not only an ``FTPHost`` object but also *each* of the 726 file-objects made from it has its own connection to the FTP server, 727 so all of the connections must be kept alive. Use the 728 `FTPHost.keep_alive`_ to refresh all connections at once. 713 729 714 730 … … 816 832 - Timeouts of individual child sessions currently are not handled. 817 833 This is only a problem if your ``FTPHost`` object or the generated 818 ``FTPFile`` objects are inactive for about ten minutes or longer. A 819 workaround is to keep the respective connections busy, e. g. call 820 ``getcwd`` on ``FTPHost`` objects or ``write("")`` on remote 821 file-like objects. 834 ``FTPFile`` objects are inactive for about ten minutes or longer. 835 As a workaround, you can use the ``keep_alive`` methods of 836 ``FTPHost`` objects and remote file-like objects. 822 837 823 838 - Until now, I haven't paid attention to thread safety. In principle,
