I agree with this, but when you're using an Intranet HTTP Server and you're making all requests via httpclient, 2 is a ridiculous number... Currently the httpclient i'm using can manage up to 200 people between two intranet servers, so if I dindn't increase the total connections allowed they would wait hours for page to show. And performances are here, nice work from the httpclient team !
The idea of a configuration is nice, and default set to 2 is alright. Although a getter on the httpconnectionmanager would allow developpers not to overpass the original httpmulticlient and to manage their connections better. Thanks for considering my request. Aur�lien Pernoud > -----Message d'origine----- > De : Ortwin Gl�ck [mailto:[EMAIL PROTECTED]] > Envoy� : lundi 30 septembre 2002 09:33 > � : Jakarta Commons Developers List > Objet : Re: [HttpClient] Bad performance with multiple request to same > host ? > > > From RFC2616: > > <cite> > Clients that use persistent connections SHOULD limit the number of > simultaneous connections that they maintain to a given server. A > single-user client SHOULD NOT maintain more than 2 > connections with any > server or proxy. > > These guidelines are intended to improve HTTP response times > and avoid > congestion. > </cite> > > We can, however, introduce a configuration key for this in > the (future) > config architecture of http client. Default will be 2 per client. > > Odi > > Aur�lien Pernoud wrote: > > Personnaly I've been overwriting the HttpMultiClient > (copying it and using > > mine) and using my own HttpConnectionManager on which I > simply increased the > > total number of allowed connections on a site this way : > > > > private HttpConnectionManager mgr = new HttpConnectionManager(); > > mgr.setMaxConnectionsPerHost(100); > > > > This way I allow 100 connections to the host, and > performances are better. > > > > But I think that in HttpMultiClient their should be getter on the > > connectionmanager that is private :-( > > > > Well now that we are two users interested, maybe they will > modify it ? > > Someone can please tell us from commons-dev ? > > > > Thanx, > > Aur�lien Pernoud > > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
