[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.dsdp.tm] Re: RSE:How to set timeout to stop the connecting state?
|
Hi hemeihua,
I don't know that much about the details of the FTP service implementation
but I'll try to help here. FTPService leverages FTPClient from apache
commons. There is a method to get the FTPClient, getFTPClient() from the
service. FTPClient extends SocketClient which has the following method:
/**
* Sets the connection timeout in milliseconds, which will be passed to the
{@link Socket} object's
* connect() method.
* @param connectTimeout The connection timeout to use (in ms)
* @since 2.0
*/
public void setConnectTimeout(int connectTimeout) {
this.connectTimeout = connectTimeout;
}
Is that what you're looking for?
Dave
"hemeihua " <he.meihua@xxxxxxxxxx> wrote in message
news:e9278e88eaa09aff19633437772e2976$1@xxxxxxxxxxxxxxxxxx
> Who will help me ?
>