Think about Loose Coupling | |
PerlMonks |
Re: (7) : UDP and IO::Socketby agoth (Chaplain) |
on Jan 18, 2002 at 14:38 UTC ( [id://139787]=note: print w/replies, xml ) | Need Help?? |
Being UDP you dont need to respond to them, read in the message, ignore it if sleep is running, then close that handle, therefore your queue should be empty.
Ah, just thought, is your server waiting for system( sleep.pl ) to return ?. If so replace the system call with a fork (and waitpid) or a fork and exec, so that the main server can continue processing requests and the sleeping can be performed independently..
In Section
Seekers of Perl Wisdom
|
|