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=24560>.
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=24560

HttpClient loops endlessly while trying to retrieve status line





------- Additional Comments From [EMAIL PROTECTED]  2003-11-11 10:39 -------
Oleg, 
 
another idea: 
 
In case of reusing persistent connections, wouldn't it be better to simply 
read/skip any available bytes before sending the next Request header? 
 
Because conversation is rather like this: (+>  
 
->> GET / HTTP/1.1 
->> Host: www.foo.com 
->> 
-<< HTTP/1.1 200 OK 
-<< Content-Length: 5 
-<< 
-<< ***** you 
-<< Really bad 
->> GET /bar HTTP/1.1 
->> Host: www.foo.com 
->> 
-<< HTTP/1.1 200 OK 
-<< Content-Length: 9 
 
Before sending the second GET, just read the surplus " you\r\nReally bad" off 
the stream (throw an Exception or skip it/append it to the response, according 
to strict/lenient mode). 
 
I guess that would be a cleaner handling (as the surplus "garbage" belongs to 
the first method request, not to the second one).

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

Reply via email to