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 ]

djberg96 (2603)

djberg96
  (email not shown publicly)

Journal of djberg96 (2603)

Wednesday February 27, 2002
04:00 PM

inetd good, less code

[ #3165 ]
So, my colleague (half sys-admin, half perl guy) decided to investigate inetd for our little client-server app.

Not only does he have it up and running in less than a week, he's cut the actual Perl code down to about %20 of what it was before. The big advantage to this approach was error logging, but it has many other advantages as well: only runs when called, virtually no chance of die'ing short of a hardware failure, no need to hand create sockets and no need to specify the port.

The drawback to this approach is that it's more overhead. If the server is "off" (after 30 seconds of inactivity - also configurable) it must reload the server each time it's "activated". For lightweight servers this is no big deal and ours fits the bill.

The other drawback is that it requires root access. Since we don't have admin rights on most of the machines, we have to rely on a very unreliable sys admin to implement this, assuming he'll even agree to do it in the first place, the lazy bastard.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.