hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 28354] - unable to find line starting with "HTTP" message when timeout occurs
Date Mon, 12 Apr 2004 21:57:37 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28354>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28354

unable to find line starting with "HTTP" message when timeout occurs





------- Additional Comments From olegk@apache.org  2004-04-12 21:57 -------
Daniel,
I seem unable to reproduce the problem. if I set socket timeout to a
ridiculously small value, this is what I get:

[DEBUG] HttpConnection - -HttpConnection.setSoTimeout(1)
[DEBUG] HttpMethodBase - -Execute loop try 1
[DEBUG] HttpMethodBase - -Adding Host request header
[DEBUG] HttpMethodBase - -Closing the connection.
[INFO] HttpMethodBase - -Recoverable exception caught when processing request
[WARN] HttpMethodBase - -Recoverable exception caught but
MethodRetryHandler.retryMethod() returned false, rethrowing exception
Exception in thread "main"
org.apache.commons.httpclient.HttpRecoverableException:
java.io.InterruptedIOException: Read timed out
	at
org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1933)
	at
org.apache.commons.httpclient.HttpMethodBase.processRequest(HttpMethodBase.java:2627)
	at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1061)
	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:643)
	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:497)
	at Test.main(Test.java:27)

It does seem that the problem is in fact caused by the server dropping
connection before sending a status line, not a timeout. Am I missing something?

You are using 2.0-final, right?

Oleg

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


Mime
View raw message