On 19/04/06, Oleg Kalnichevski <[EMAIL PROTECTED]> wrote:
> [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.

But equally, the connection can be closed if required (as I understand it).

The Sun implementation gives absolutely no control over connection
re-use. If you want to restrict a particular connection to be used
only by a single thread - tough.

HttpClient gives you all the control you need.

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

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to