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=37161>.
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=37161


[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |RESOLVED
         Resolution|                            |INVALID




------- Additional Comments From [EMAIL PROTECTED]  2005-10-19 14:07 -------
No wonder it is dog slow. The connection manager still assigns 2 max connections
for the local host due to two bugs in your code:

First off, please correctly initialize the host config object or use
HostConfiguration#ANY_HOST_CONFIGURATION static object:

        HostConfiguration hostConfiguration = new HostConfiguration();
        // !!!!
        hostConfiguration.setHost("localhost", 8080);

Secondly, do not forget to assign the parameters to the connection manager

        httpConnectionManagerParams.setMaxConnectionsPerHost(
                hostConfiguration, maxConnectionsPerHost);
        httpConnectionManagerParams.setMaxTotalConnections(
                maxTotalConnections);
        // !!!!
        httpConnectionManager.setParams(httpConnectionManagerParams);

Hope this helps

Oleg

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to