On Fri, 2008-10-10 at 10:08 -0400, AP Adam Patt (5094) wrote:
> > On Thu, 2008-10-09 at 15:05 -0400, AP Adam Patt (5094) wrote:
> > > I am trying to use HttpClient with threads and while it works, it is
> > > only sending one request at a time
> > 
> > How do you know?
> 
> Because the app marks the files being done and even if there is small
> file after a large file, it will always do the files in order.  I also
> got a multi threaded process working before and the overall processing
> time was lower with more threads and using this library it's the same if
> I use one or many threads.  I can also see in my debug window that it's
> just rotating between the threads for requests coming back.
> 

Essentially you _assume_ HttpClient is the culprit, rather
synchronization logic in your code, don't you?

To see what exactly what is happening inside HttpClient components, run
it with both wire and context logging on. You should also use a logging
toolkit that can provide you with the thread context information (such
as Log4j), since this problem appears to be threading related. If you
need help interpreting the logs feel free to post them to this list. 

Oleg


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


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

Reply via email to