commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cory Burkhardt" <>
Subject Is FTPClient.retrieveFile thread safe?
Date Thu, 03 Apr 2008 16:06:55 GMT
The Net FAQ says "If you want to share a single FTPClient instance between
multiple threads, you must serialize access to the object with critical
sections."  Since the retrieveFile method blocks until the download is
complete, does that mean I cannot use this method from multiple threads and
I am required to use the retrieveFileStream method to write the file
manually instead?

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message