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 38636] - HttpState.clearCookies() should be synchronized
Date Tue, 14 Feb 2006 15:24:07 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=38636>.
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=38636





------- Additional Comments From observewisdom@yahoo.com  2006-02-14 16:24 -------
(In reply to comment #2)
> This is clearly a bug.
> 
> However it seems awkward to me why you wanted to clear cookies from a different
> thread in the middle of other requests executing. Even if there is now no
> exception thrown anymore HttpClient's behaviour is certainly not deterministic
> in that case.

Agreed. When I saw someone else's code using the same HttpState object across
multiple threads, I immediately changed the code to use only one HttpState per
thread. Yes, their code was not written with threadsafety in mind, but
fortunately I was able to find that person's problem AND this bug and be part of
the solution for both.

-- 
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


Mime
View raw message