in reply to Pre-Forking Server, Reading client data

for ($i=0; $i < $MAX_CLIENTS_PER_CHILD; $i++) { ($client) = $server->accept( ) or last;
That doesn't look like a pre-forking server.

You might want to go see how I do it in my pre-forking anonymous proxy server column.

Unless you're showing only the part after the fork?

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

Replies are listed 'Best First'.
Re^2: Pre-Forking Server, Reading client data
by Zaxo (Archbishop) on Aug 15, 2005 at 00:58 UTC

    Yes that's in the child after fork, Perl Cookbook Recipe 17.12 in the first edition.

    After Compline,
    Zaxo