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 [EMAIL PROTECTED]  2003-02-21 17:14 -------
Ok I've attached a new test case that shows the trouble. I'm sorry for the 
code, it's not "beautiful", but it should work.
In fact I'm trying to reproduce what I'm doing in my webapp in this testcase, 
and the bug shows up, so maybe I'm doing something wrong (I hope I'm not...).

Here the way it works :

Multiple simultaneous requests towars a servlet.
request are this kind : /httpclient/servlet?parameter=i

I use a global state that I initialize at first to make a session with the 
servlet
All requests have unique i parameter

The servlet takes the request, if session is valid -> returns i, else 
return "new session" or "session not valid"

As the method knows what it asked, it checks if it's what he asked.
Yes -> do nothing
No -> print "I asked for " myuniqueid "and got" responsebodystring

For few requests, it goes ok, for a lot, there are exceptions, and then you see 
errors of not getting the good result, you see the http parse exception "can't 
find HTTP/"...

As I might be doing something wrong, please test this case, and if I'm not 
doing something wrong, could you include it in a real test case (I don't know 
how to do testcase yet) ??

Thx,
Aurelien

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to