> TFtpServer component will create a new thread for each client, and > each client will be handled in multiple instances of the same > procedure.
The ICS FTP server does not create a thread for each client, all clients are handled using the same thread. Some commands that require potentially lengthy processing are handled using a temporary thread, specifically some directory listing commands, MD5 and CRC32 calculations. A temporary thread is used since these commands can take a couple of minutes with gigabyte sized files during which all other actions in the server would be blocked. If you extend the FTP server with custom commands that take more than a second or so to process, you should also use a thread for that processing. Your server application also needs to take care with file lock timeouts, network timeouts, etc, to avoid blocking the main thread. Angus -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be