Roland, any comments from you on my original question ? Thanks in advance
On 4/20/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > Thanks a lot Oleg. > > -----Original Message----- > From: Oleg Kalnichevski [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 20, 2006 1:51 PM > To: HttpClient User Discussion > Subject: RE: Persistent connection > > On Thu, 2006-04-20 at 10:54 +0530, [EMAIL PROTECTED] wrote: > > >>HttpClient reuses persistent connections very aggressively. If a > > connection can be kept alive and reused for subsequent >>requests it > > will be. > > > > Thanks for the info Oleg,however,can I please have some more detail on > > > using persistent connection aggressively, > > Sajid, > > You can see the algorithm here > > http://jakarta.apache.org/commons/httpclient/xref/org/apache/commons/htt > pclient/HttpMethodBase.html#878 > > Essentially > (1) all HTTP/1.1 connections will be reused unless 'Connection: close' > directive is sent in the response header; > (2) HTTP/1.0 connections will be reused provided the 'Connection: > keep-alive' directive is sent in the response header. > > Oleg > > > even > > java.net.HttpURLConnection re-uses connection for subsequent request > > as long as we don't send "Connection:close" header in the request > > > > -Sajid > > > > -----Original Message----- > > From: Oleg Kalnichevski [mailto:[EMAIL PROTECTED] > > Sent: Thursday, April 20, 2006 12:53 AM > > To: HttpClient User Discussion > > Subject: Re: Persistent connection > > > > [EMAIL PROTECTED] wrote: > > > Thanks, however any idea on what are the improvements of HTTP client > > > > over java.net.HttpURLConnection with regard to persistent connection > > > > > > -Sajid > > > > > Sajid, > > > > HttpClient reuses persistent connections very aggressively. If a > > connection can be kept alive and reused for subsequent requests it > > will be. > > > > I have no idea about java.net.HttpURLConnection. When I last tried it > > (admittedly a long time ago), it was completely broken. Moreover, we > > are not supposed to look at the Sun's proprietary code for legal > reasons. > > > > Oleg > > > -----Original Message----- > > > From: Sam Gw [mailto:[EMAIL PROTECTED] > > > > > > Sent: Wednesday, April 19, 2006 11:10 AM > > > To: HttpClient User Discussion > > > Subject: Re: Persistent connection > > > > > > Maybe you could download source code from Sun. And try to understand > > > > HttpURLConnection class. > > > I ever read it long time ago. But I forget the difference between > > them. > > > All I remember is HttpURLConnection doesn't fine handle connection. > > > > > > Sam > > > > > > [EMAIL PROTECTED] wrote: > > > > > >> Any comments on this. please reply , Thanks in Advance > > >> > > >> > > >> > > >> > > >> ________________________________ > > >> > > >> From: Sajid Khan (WT01 - Computing Systems & Storage) > > >> > > >> Sent: Tuesday, April 18, 2006 11:43 AM > > >> To: '[email protected]' > > >> Subject: Persistent connection > > >> > > >> > > >> Hi All, > > >> > > >> > > >> If Sun's HttpURLConnection is used with HTTP 1.1 then by default > > >> HTTP > > >> 1.1 uses persistent connection.The documentation of HTTPClient also > > >> > > > > > > > > >> tells us that persistent connection is used. My question is what is > > >> > > > > > > > > >> the exact difference in terms of persistent connection between > > >> java's > > >> > > > > > > > > >> HttpURLConnection and HTTPClient. which is better, how can we > > >> measure > > >> > > > ? > > > > > >> Kindly let me know > > >> > > >> > > >> Thanks, > > >> Sajid > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> The information contained in this electronic message and any > > >> > > > attachments to this message are intended for the exclusive use of > > > the > > > addressee(s) and may contain proprietary, confidential or privileged > > > > information. If you are not the intended recipient, you should not > > > disseminate, distribute or copy this e-mail. Please notify the > > > sender immediately and destroy all copies of this message and any > > attachments. > > > > > >> WARNING: Computer viruses can be transmitted via email. The > > >> recipient > > >> > > > should check this email and any attachments for the presence of > > viruses. > > > The company accepts no liability for any damage caused by any virus > > > transmitted by this email. > > > > > >> www.wipro.com > > >> > > >> > > > > > > > > > > > > > > > -------------------------------------------------------------------- > > > - To unsubscribe, e-mail: > > > [EMAIL PROTECTED] > > > For additional commands, e-mail: > > > [EMAIL PROTECTED] > > > > > > > > > > > > The information contained in this electronic message and any > > attachments to this message are intended for the exclusive use of the > > addressee(s) and may contain proprietary, confidential or privileged > > information. If you are not the intended recipient, you should not > > disseminate, distribute or copy this e-mail. Please notify the sender > > immediately and destroy all copies of this message and any > attachments. > > > > > > > > > WARNING: Computer viruses can be transmitted via email. The > > > recipient > > should check this email and any attachments for the presence of > viruses. > > The company accepts no liability for any damage caused by any virus > > transmitted by this email. > > > > > > > > > www.wipro.com > > > > > > -------------------------------------------------------------------- > > > - To unsubscribe, e-mail: > > > [EMAIL PROTECTED] > > > For additional commands, e-mail: > > > [EMAIL PROTECTED] > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: > > [EMAIL PROTECTED] > > > > > > > > The information contained in this electronic message and any > attachments to this message are intended for the exclusive use of the > addressee(s) and may contain proprietary, confidential or privileged > information. If you are not the intended recipient, you should not > disseminate, distribute or copy this e-mail. Please notify the sender > immediately and destroy all copies of this message and any attachments. > > > > WARNING: Computer viruses can be transmitted via email. The recipient > should check this email and any attachments for the presence of viruses. > The company accepts no liability for any damage caused by any virus > transmitted by this email. > > > > www.wipro.com > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: > > [EMAIL PROTECTED] > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > The information contained in this electronic message and any attachments > to this message are intended for the exclusive use of the addressee(s) and > may contain proprietary, confidential or privileged information. If you are > not the intended recipient, you should not disseminate, distribute or copy > this e-mail. Please notify the sender immediately and destroy all copies of > this message and any attachments. > > WARNING: Computer viruses can be transmitted via email. The recipient > should check this email and any attachments for the presence of viruses. The > company accepts no liability for any damage caused by any virus transmitted > by this email. > > www.wipro.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
