On Thu, Jan 25, 2007 at 12:31:02PM +0000, Thomas Pedoussaut wrote:
> Niall O Broin wrote:
> >And another question, while I'm there - the new server will run apache
> >2.0 . Does it (or even 2.2) provide any mechanism for limiting the
> >number of servers which are spawned for a given domain? It'd be useful
> >to not have to run a separate server for that domain, and it'd be
> >handy to not have to waste an IP address just for that one domain.
> It can't, as the tcp connection is done BEFORE sending the "Host:
> www.example.com" header.
Actually with modern accept filters on *BSD and Linux, you can have
accept() not return until the kernel sees a blank-line, then you can do
a quick inspect and hand-off to a thread somewhere else. It's not really
a problem. That information nearly all arrives in a single read()
operation anyway, only very rarely would a HTTP request be fragmented,
it'd really have to be a big POST or PUT.
The threadpool MPM in 2.x has very basic support for this, and one of
the things I hope to get done by 3.x is a send-file-descriptors over UDP
sockets framework proxy solution for much more complicated stuff like
Colm MacCárthaigh Public Key: colm+pgp at stdlib.net
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!