You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Oscar Usifer <os...@programmer.net> on 2007/07/20 02:27:54 UTC

[FTPClient] How to set connect timeout

Folks, Is there a variable or function I can use to set the FTP
connection time out prior to calls of FTPClient connect ? My situation is
that I may be attempting to connect to an FTP server that is
down/offline, and I'd like the program to abort within 100ms if that's
the case. Thanks,OSCAR

-- 
We've Got Your Name at http://www.mail.com!
Get a FREE E-mail Account Today - Choose From 100+ Domains