Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Matts (1087)

Matts
  (email not shown publicly)

I work for MessageLabs [messagelabs.com] in Toronto, ON, Canada. I write spam filters, MTA software, high performance network software, string matching algorithms, and other cool stuff mostly in Perl and C.

Journal of Matts (1087)

Wednesday September 19, 2001
11:50 AM

PPerl

[ #801 ]

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