in reply to Peer to Peer Filesharing

You'll need to add code to properly reap child processes. reaper subroutines will get you started. Or do a Super Search for "CHLD".

If you're serious about client server applications (or even if you're just curious), I highly recommend Lincoln Stein's book Network Programming with Perl. He provides a framework that does all of the right things.

And if you're seriously concerned about what the University network admins might do if they catch you, identifying your server by printing "Thank you for accessing perlster" might not be your best move. It's rather like painting a bullseye on your box. University network admins can be particularly vengeful.

Replies are listed 'Best First'.
Re: Re: Peer to Peer Filesharing
by jryan (Vicar) on Nov 02, 2001 at 07:55 UTC

    Well, I have  SIG{CHLD} = 'IGNORE', but I guess that isn't really sufficient. Thanks for the tip.

    I've looked at that book, and want to buy it; however, I am a bit short on funds right now (hey, i'm a poor college kid, go figure). I'll ask for it for christmas; maybe Santa will bring it ;)

    Well, they aren't too concerned with bandwidth; My roommate regularly downloads whole movies from IRC. The server itself barely handles any of the load; its peer to peer. Hopefully, the sysadmins won't give me too much trouble...

    Thanks for the comments tho, I appreciate it :)

      My own experience of university admins is that, while they don't quite reach BOFH-level, they can be very, very nasty if they feel you're trying to outsmart them.

      Think of the ease with which urgent documents can disappear from print queues and 'mysterious' login problems can occur...

      Kevin O'Rourke