On Mon, Oct 18, 1999 at 12:00:07PM +0200, Stas Bekman wrote:
> 
> [CC'ing this to modperl list, this is something of general interest and
> a good topic for an interesting thread]

:)

I'm not currently subscribed to this as I'm extremely new to mod_perl. I
hope people keep me on the cc list until my subscription comes through.

[snip]
> You are talking about KeepAlive... Hmm, I think you are right, I should
> have mentioned this point. Do you think the KeepAlive should be turned
> off? Since there is no actually need for this option (all the static
> objects are being served by a lighter process). But if the KeepAlive is
> on, mod_perl will keep the connection open, till it timeouts or
> terminated. So it breaks all the "improvements" down :(
> 
> If I'm not missing something, you've got a real case here. 

There are definite advantages to keep-alive from a tcp perspective since
fresh connections will incur not only the 3 way-TCP handshake but also be
penalised by slow-start. So while turning it off may help the memory usage
on the server, it will disadvantage the client from a network speed
perspective ... tricky.

One option I suppose would be for the proxy/accelerator to keep the
connection open to the client but make individual connections to the
server, read the response, buffer it for sending to the client and close
the server connection (making new connections to the server as required
by the client requests obviously). Given the speed of the network
connections I deal with, this may be a win but I'm only on day 3 of
playing with mod_perl things so it's hard to tell ;)

Cheers,

--Craig

Reply via email to