Multiple FTP sessions for a user.
I need to enable a non-anonymous username to have >1 session (like an anonymous user). The username is used in an MS Outlook macro to upload documents via FTP to the Zope server, which means that the possibility exists for multiple instances of the same username may be connected concurrently to the Zope instance. Currently, if a user connects to the Zope instance using the upload username, subsequent users get a "Connection closed by remote host" error. In addition, the FTP server seems to have a very long timeout setting. I've looked in the ZServer/Medusa code but haven't found the magic bullet for either problem yet. Any help would be appreciated. -- Doug
On Apr 28, 2004, at 12:48 PM, Doug Filteau wrote:
In addition, the FTP server seems to have a very long timeout setting. I've looked in the ZServer/Medusa code but haven't found the magic bullet for either problem yet.
Check out line 558 of FTPServer.py. (the definition of the FTPLimiter class) I think it might be what you are looking for. (We are using Zope 2.6.0, other versions may differ) --- Edward J. Pollard, B.Sc Webmaster, University of Lethbridge Ext. 1828
Doug Filteau wrote:
I need to enable a non-anonymous username to have >1 session (like an anonymous user). The username is used in an MS Outlook macro to upload documents via FTP to the Zope server, which means that the possibility exists for multiple instances of the same username may be connected concurrently to the Zope instance.
What about solving it on the client side: Check if you already have an open connection before you upload, and use it if that's the case. Or just remember to close the FTP session each time. /Anton
Doug Filteau wrote at 2004-4-28 11:48 -0700:
I need to enable a non-anonymous username to have >1 session (like an anonymous user). The username is used in an MS Outlook macro to upload documents via FTP to the Zope server, which means that the possibility exists for multiple instances of the same username may be connected concurrently to the Zope instance.
Currently, if a user connects to the Zope instance using the upload username, subsequent users get a "Connection closed by remote host" error.
This usually is not the case. I just tried in my Zope 2.7 installation and was able to open 2 authenticated FTP to the same Zope instance. Furthermore, my colleagues edit Zope objects via FTP (using "HomeSite"). They do this concurrently. There have never been problems.
In addition, the FTP server seems to have a very long timeout setting. I've looked in the ZServer/Medusa code but haven't found the magic bullet for either problem yet.
Maybe, but why do you care? We had to have increase the number of file descriptors for Zope (due to lots of pending FTP sessions). However, apart from that we did not have problems. -- Dieter
participants (4)
-
Anton Stonor -
Dieter Maurer -
Doug Filteau -
Edward Pollard