You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by bu...@apache.org on 2005/07/21 16:27:56 UTC
DO NOT REPLY [Bug 35815] New: -
Race condition when read chunked responses
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=35815>.
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=35815
Summary: Race condition when read chunked responses
Product: HttpClient
Version: 2.0.2
Platform: Sun
OS/Version: Solaris
Status: NEW
Severity: normal
Priority: P1
Component: Commons HttpClient
AssignedTo: httpclient-dev@jakarta.apache.org
ReportedBy: klaus.kopruch@materna.de
Hi,
we use commons-httpclient for long time without any trouble in different
projects. Now we have problems at one customer: in rare situations we get
unrecoverable errors from http client when reading the response.
The situation is as follows:
* HttpClient is used by a staeless session bean in JBoss 3.2.7.
* commons-httpclient.jar v2.0.2 is installed.
* Only one instance of http client will be created:
MultiThreadedHttpConnectionManager connectionManager = new
MultiThreadedHttpConnectionManager();
connectionManager.setMaxTotalConnections(50);
connectionManager.setMaxConnectionsPerHost(2);
theHttpClient = new HttpClient(connectionManager);
* HTTP 1.1 will be used.
I see by turning on the wire log:
a) Thread-1 sends a post to the server.
b) Thread-2 sends a post to the server using the same connection as Thread-1.
c) Thread-1 begins to read the response while Thread-2 is in b)
d) Thread-2 begins to read the response while Thread-1 is in c)
So one thread eats some bytes of the response from the other.
I attach a full http_client.log, a wire log and a snoop.
Tx for help.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org