-------- Original Message -------- Subject: MultiThreadedHttpConnectionManager questions Date: Fri, 22 Aug 2003 03:23:21 +0000 From: christopher justin <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] CC: mailto:[EMAIL PROTECTED]
I have a quetion regarding Class MultiThreadedHttpConnectionManager - I must
say first, thanks for the work you have done creating this class and others
related to HttpClient.. it is exactly what I am looking for, as I require
multi-threading and better control and more feature rich than the Java
URLConnection.
I have followed the example for mult-threading and have basically the same exact set up that the example shows (except i do connect to 2 different proxies). What happens though, if I do a single thread, everything is fine.. I can pull hundreds of web pages, one after another. But, if I do 2 or more threads, I start getting errors, like this:
INFO: Recoverable exception caught when processing request Aug 21, 2003 9:05:29 PM org.apache.commons.httpclient.HttpMethodBase processRequ est WARNING: Recoverable exception caught but MethodRetryHandler.retryMethod() retur ned false, rethrowing exception A recoverable exception occurred, retrying. org.apache.commons.httpclient.HttpR ecoverableException: Error in parsing the status line from the response: unable to find line starting with "HTTP"
I don't understand, its as if there is no concurency control to the HttpConnection object when I do client.executeMethod(get) from within a thread. Have you encoutered this with the theading manager ?
Your help would be greatly appreciated..
thanks
chris
_________________________________________________________________ Help protect your PC: Get a free online virus scan at McAfee.com. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
