hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 32607] New: - local address not working multithreaded
Date Thu, 09 Dec 2004 14:42:23 GMT
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=32607>.
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=32607

           Summary: local address not working multithreaded
           Product: HttpClient
           Version: 3.0 Beta 1
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Commons HttpClient
        AssignedTo: httpclient-dev@jakarta.apache.org
        ReportedBy: erenouf@skaion.com


System: JDK1.5.0, RH linux 7.3 2.4.20 custom compiled kernel

Creating a new HttpClient with a MultiThreadedHttpConnectionManager and trying
to bind HostConfigurations to different local addresses on a multihomed host
results in each thread just coming from the default IP as shown in the apache
access_log.

The following code seems to trigger the problem.  If I uncomment the commented
block and comment out the final line, then all threads come from the default IP.
 With the code as it now looks it works correctly.

/*
        MultiThreadedHttpConnectionManager manager = new
MultiThreadedHttpConnectionManager();
        HttpConnectionManagerParams p = manager.getParams();
        p.setDefaultMaxConnectionsPerHost(100);
        p.setMaxTotalConnections(100);
        p.setConnectionTimeout(5000);
        manager.setParams(p);
        manager.closeIdleConnections(5000);
        browser = new HttpClient(manager);
 */
        browser = new HttpClient(new MultiThreadedHttpConnectionManager());

-- 
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


Mime
View raw message