On Wed, 10 Mar 2004, Robert Spier wrote:

> > I'm curious as to whether anyone has built a forking server around qpsmtpd
> > (essentially doing what tcpserver does, but in perl)? I'm aware of the
> > select server version(*), but would prefer a forking server (say, using
> > Net::Daemon). That would seem to be able to provide the same speedup as
> > pperl, but without the headache.  What am I missing?
> 
> pperl is pre-forking. 

Yes, but SelectServer isn't.

> It doesn't fork on every connection.  The forking on every connection is
> part of what causes some of the overhead.

Do you have evidence that that is the case? Fork should be inexpensive, 
and it's certainly not a problem with tcpserver.

> But in general, I think this is a good idea, at least to see how it
> works :)

I'll let you know if I get something working. Please be sure to let me 
know if you beat me to it :-)

> Net::Daemon can do preforking too.

It can, but is latency critical enough for it to be an issue?

---
Charlie

Reply via email to