[prev in list] [next in list] [prev in thread] [next in thread] 

List:       httpclient-commons-dev
Subject:    DO NOT REPLY [Bug 35057]  New:  -
From:       bugzilla () apache ! org
Date:       2005-05-25 8:50:19
Message-ID: 20050525085019.4371518E () ajax ! apache ! org
[Download RAW message or body]

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35057>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=35057

           Summary: Occasional "Host connection pool not found"
           Product: HttpClient
           Version: Nightly Builds
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Commons HttpClient
        AssignedTo: httpclient-dev@jakarta.apache.org
        ReportedBy: ab@getopt.org


I'm using HttpClient with MultiThreadedHttpConnectionManager in a crawler
application. The application issues requests to many hosts, in 10-20 parallel
request threads. Each thread creates a new GetMethod, but all threads use the
same instance of HttpClient, created once with a multi-threaded manager.

The code in each thread looks like this:

GetMethod get = new GetMethod(url);
try {
  int code = getSharedHttpClient().executeMethod(get);
  // ... read response, do stuff
} finally {
  get.releaseConnection();
}


From time to time I get an error like this:

Host connection pool not found, hostConfig=HostConfiguration[host=http://a.b.c]

where the url is a random url from my fetch list. I looked into the source code
of the nightly release (MultiThreadedHttpConnectionManager.java:979), but the
comment there is not enlightening... ;-) Any help or suggestions for further
debugging would be appreciated.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic