hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "pavan kumar" <pavanku...@dellmail.com>
Subject Re: MaxRequestsPerConnection
Date Sun, 12 Jun 2005 10:51:35 GMT
Hi All,

Can some one understand my requirement and help me too.
The HTTPS tunneling I have is working on ISA server. Will there be any problem if I enable
NTLM on the machine where I have the proxy. Do I need to do any changes in code level.

My problem - I have a program that connects to a server in two ways
way 1) with out proxy
way 2) with proxy ( basic authentication)

for this I have the code(plz see attatchment) now the 3rd way my program shud connect is thru
proxy ( NTLM authentication).

Can u plz find time and help me how to do this.
If I start using HttpClient3.0 I need to do the whole project again.
I dont want to disturb all the other modules.

Plz help me

Regards
Pavan



----- Original Message -----
From: "Michael Becke" <mbecke@gmail.com>
To: "HttpClient User Discussion" <httpclient-user@jakarta.apache.org>
Subject: Re: MaxRequestsPerConnection
Date: Sat, 11 Jun 2005 21:38:58 -0400

> 
> Hi Ahmed,
> 
> None of the built-in connection managers have the ability to control
> how many times a connection is used.  It would be fairly simple to
> write your own implementation of HttpConnectionManager to perform this
> task.  
> <http://jakarta.apache.org/commons/httpclient/3.0/apidocs/org/apache/commons/httpclient/HttpConnectionManager.html>
> 
> You could also enforce that a connection is never reused by overriding
> releaseConnection() in one of the existing connection managers and
> always call connection.close().
> 
> Mike
> 
> On 6/10/05, Ahmed Badran <aab79@yahoo.com> wrote:
> > Hi
> > I just joined the mailing list recently. but was wondering if you can have
> > number of requests per connection configurable.  some hardware load
> > balancers do the balancing based on connections and not on requests.  so
> > instead of hamering one box with multiple requests (since the httpclient
> > is reusing the same connection over and over, for 20 min sometimes), it
> > would be great to be able to limimt the number of requests per connection.
> >
> >
> > I see that Apache http server (httpd.conf) has KeepAlive,
> > MaxKeepAliveRequests, etc) to handle the server side.  do you think this
> > can help in limiting the client from reusing the same connection?
> > However, I am using Jetty http server, so does it have similare configs?
> >
> > Thanks,
> >
> > --- Ahmed Badran
> >
> >
> >
> >
> > __________________________________
> > Discover Yahoo!
> > Have fun online with music videos, cool games, IM and more. Check it out!
> > http://discover.yahoo.com/online.html
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: httpclient-user-help@jakarta.apache.org
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpclient-user-help@jakarta.apache.org



Mime
View raw message