You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by Michael Becke <be...@u.washington.edu> on 2003/08/22 15:42:42 UTC
[Fwd: MultiThreadedHttpConnectionManager questions]
Please see the forwarded message below.
-------- Original Message --------
Subject: MultiThreadedHttpConnectionManager questions
Date: Fri, 22 Aug 2003 03:23:21 +0000
From: christopher justin <ch...@hotmail.com>
To: becke@u.washington.edu
CC: mailto:mbowler@GargoyleSoftware.com
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