hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roland Weber <http-as...@dubioso.net>
Subject Re: The HttpState of HttpClient in a multithreaded scenario
Date Wed, 16 Aug 2006 20:49:04 GMT
Hello David,

> From looking at the source, the instance variable 'state' (of type
> HttpState)
> seems to be shared between all the concurrently executed methods, this
> might result 
> in a indeterminate state of the http state.

HttpState should be synchronized and therefore thread-safe. If you
want different threads to have separate states, then keep a state
in each thread and use the execute methods that take a state as an

hope that helps,

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

View raw message