commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel F. Savarese" <...@savarese.org>
Subject Re: Socket connect timeout
Date Fri, 09 May 2003 04:49:53 GMT

In message <017e01c3156f$11e02040$a520a4d5@tsatec.int>, =?iso-8859-1?Q?Gustavo_
Rodr=EDguez?= writes:
>    Hi, we're using your FTP client API and would like to use the new =
>JDK1.4 connect timeout method. We've seen in your source code that =
...
>Is there any other way to specify a connection time out?

The existing source code is JDK 1.1 compatible.  You can easily do what
you want by implementing a socket factory or subclassing FTPClient and
overriding _connectAction_() and setting the connection timeout before
calling super._connectAction_().

daniel



Mime
View raw message