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 13463] - Request/Response race condition when doing multiple requests on the same connection.
Date Thu, 13 Feb 2003 13:08:01 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13463>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13463

Request/Response race condition when doing multiple requests on the same connection.





------- Additional Comments From apernoud@sopragroup.com  2003-02-13 13:08 -------
I've encountered this bug in 2.0a2 and in the nightly from today (02/13/03), 
and It's a bigger bug than it seems

My conf : I'm using a MultiThreadedConnectionManager to make lots of request 
towards one server.
Each time I need a connection, I use the getConnection(hostConfig) and execute 
the method using the connection. I always do a releaseconnection in my try() -> 
finally{} to be sure the connection is really closed.

With an old nightly (around may 2002), using HttpMultiClient and its 
connectionmanager, everything was right. With the new release, and the nightly, 
everything goes fine if requests are made one after the other. If two requests 
are made simultaneously, I have many many exceptions of this kind :

java.lang.IllegalStateException: Connection is not open
	at org.apache.commons.httpclient.HttpConnection.assertOpen
(HttpConnection.java:1019)
	at org.apache.commons.httpclient.HttpConnection.readLine
(HttpConnection.java:896)
	at org.apache.commons.httpclient.HttpMethodBase.readStatusLine
(HttpMethodBase.java:1898)
	at org.apache.commons.httpclient.HttpMethodBase.readResponse
(HttpMethodBase.java:1704)
	at org.apache.commons.httpclient.HttpMethodBase.processRequest
(HttpMethodBase.java:2304)
	at org.apache.commons.httpclient.HttpMethodBase.execute
(HttpMethodBase.java:957)

and sometimes I also have the "INFO: Recoverable exception caught when writing 
request", it depends.

I'll try to make a testcase this afternoon to reproduce it, cause here all I do 
is open many browser and "refresh" them :)

I'm afraid this bug isn't over yet.

Mime
View raw message