Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Re: (5) : UDP and IO::Socket

by toadi (Chaplain)
on Jan 16, 2002 at 21:00 UTC ( #139242=note: print w/ replies, xml ) Need Help??


in reply to Re: (5) : UDP and IO::Socket
in thread UDP and IO::Socket

his will not wait for individual actions to complete and will allow you to close incoming reads

And how can I close the incoming reads as longh as sleep is running. I don't want them to be in the queue as long as sleep is running. SLeep may only be activated by a request from a client after sleep is finished!

--
My opinions may have changed,
but not the fact that I am right


Comment on Re: Re: (5) : UDP and IO::Socket
Re: (7) : UDP and IO::Socket
by agoth (Chaplain) on Jan 18, 2002 at 14:38 UTC
    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..

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://139242]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2014-07-26 16:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (178 votes), past polls