hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rob Tice" <rob.t...@k-int.com>
Subject connection timeout question
Date Wed, 09 Apr 2003 08:36:42 GMT
java.net.ConnectException: Connection timed out: connect
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:295)
	at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:161)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:148)
	at java.net.Socket.connect(Socket.java:425)
	at java.net.Socket.connect(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:290)
	at java.net.Socket.<init>(Socket.java:118)
	at
org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.crea
teSocket(DefaultProtocolSocketFactory.java:105)
	at
org.apache.commons.httpclient.HttpConnection$1.doit(HttpConnection.java:
501)
	at
org.apache.commons.httpclient.HttpConnection$SocketTask.run(HttpConnecti
on.java:1049)
	at java.lang.Thread.run(Thread.java:536)


I am occasionally getting this standard timeout exception using
httpclient. The problem is that I have set the connection timeout to 60
seconds setConnectionTimeout(60000) and this is occurring after between
2 and 3 seconds (using 2.0 alpha 3). Any guesses as to what is
happening, or am I missing something.



Rob Tice





Mime
View raw message