commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha <aha1...@yahoo.com>
Subject [net]FTPClient.connect() spend long time for "null" host
Date Wed, 09 Jun 2004 11:51:57 GMT
Hi,

When I use connect("10.0.0.1", 21) to connect "null"
host, that means no host bind the "10.0.0.1", it
throws exception after spent long time (about 220s).

Faint!


2001-06-09 19:34:49.117 start

java.net.ConnectException: Connection timed out
        at
java.net.PlainSocketImpl.socketConnect(Native Method)
        at
java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
        at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
        at
java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
        at java.net.Socket.connect(Socket.java:434)
        at java.net.Socket.connect(Socket.java:384)
        at java.net.Socket.<init>(Socket.java:291)
        at java.net.Socket.<init>(Socket.java:119)
        at
org.apache.commons.net.DefaultSocketFactory.createSocket(DefaultSocketFactory.java:92)
        at
org.apache.commons.net.SocketClient.connect(SocketClient.java:201)
......

2001-06-09 19:38:33.792 end



How can I avoid it ???

B.R.

-----------------
aha1973@yahoo.com


	
		
__________________________________
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message