On Tue, 8 Aug 2000, Nigel Hamilton wrote:

Nigel, I hope you don't mind that I bounce it back to the list, since
that's how it should be.

>       What is the rationale behind the content length speed improvement?
>       Can SSL more efficiently/quickly send the page if it knows the
> content length in advance?

The improvement is in taking the advantage of the KeepAlive feature, which
enables a sending of more then one object over the same connection. So you
save the handshake to initiate a connection for each requested object,
which is especially expensive with SSL if you don't use caching of SSL
keys.

KeepAlive works only if the server sends a Content-Length header, since it
has to know when the object has been sent, and when it should timeout in
order to close the connection if there is no more incoming requests from
the same page.

Notice that it makes the user experience somewhat slower, since instead of
initiating many connections and downloading all the objects (e.g. images)
in parallel, the objects are downloaded sequencially.

Make sure you set the KeepAliveTimeout to the value as small as possible,
since the server is in idle state while waiting for the time out.

For the reasons explained above you don't want to use KeepALive under
mod_perl in most cases.

> 
> Thanks
> 
> NIge
> 
> Nigel Hamilton
> ______________________________________________________________________________
> http://e1mail.com        e1mail - Encrypted 1st Class Mail        e1mail: 1001
> 
> 
> On Tue, 8 Aug 2000, Stas Bekman wrote:
> 
> > On Tue, 8 Aug 2000, Matt Sergeant wrote:
> > 
> > > On Tue, 8 Aug 2000, Nigel Hamilton wrote:
> > > 
> > > > Hi,
> > > >      Also, does anyone know a way to speed up SSL somehow?
> > > 
> > > Keep-alives. To be able to do that you need to store your output and make
> > > sure that your solution sends the appropriate headers that don't kill
> > > keep-alive. These include Content-Length (which is why you need to store
> > > your output before sending it) and some others which I forget, anyone?
> > 
> > According to http://perl.apache.org/guide/correct_headers.html
> > oroginally written by Andreas, Content-Length is all you need. Of course
> > you have to enable KeepAlive in the server and the client should support
> > it as well.
> > 
> > _____________________________________________________________________
> > Stas Bekman              JAm_pH     --   Just Another mod_perl Hacker
> > http://stason.org/       mod_perl Guide  http://perl.apache.org/guide 
> > mailto:[EMAIL PROTECTED]   http://apachetoday.com http://jazzvalley.com
> > http://singlesheaven.com http://perlmonth.com   perl.org   apache.org
> > 
> > 
> 
> 



_____________________________________________________________________
Stas Bekman              JAm_pH     --   Just Another mod_perl Hacker
http://stason.org/       mod_perl Guide  http://perl.apache.org/guide 
mailto:[EMAIL PROTECTED]   http://apachetoday.com http://jazzvalley.com
http://singlesheaven.com http://perlmonth.com   perl.org   apache.org


Reply via email to