PPerl

Matts on 2001-09-19T16:50:26

PPerl stands for Persistent Perl.

It's basically SpeedyCGI but meant for command line apps.

What that means is that it turns your ordinary perl script into a unix domain socket daemon, so that the script (and perl) stay in memory. Upon subsequent invocations, it just connects to the daemon.

Anyway, it works, and I want to stick it on CPAN (after due checks from $boss), but unfortunately there seems to be a bug.

When I use it under CGI, the first connection attempt *always* times out. I have no idea why. This only happens in the connection that tries to spawn perl. I've made sure the perl process is a child of init (using the double-fork method, checked using pstree), so Apache shouldn't be waiting for it to exit.

If you know why this is happening, answers on a postcard please to msergeant@startechgroup.co.uk