Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: anyevent + fork = problem

by roboticus (Chancellor)
on Dec 07, 2012 at 15:08 UTC ( #1007752=note: print w/ replies, xml ) Need Help??


in reply to anyevent + fork = problem

hithim:

I don't understand why you're using fork. Since there's no a whole lot of logic to DHCP, it's not like you have large tasks you need to fork off to keep your server available. Don't you just need to hit a hash and send a reply? That should be quick enough to just handle as it comes without splitting off another process.

Similarly, if you *want* to use fork, then I don't understand why you want to use AnyEvent.

I've not used AnyEvent before, so there might simply be something I don't understand, though.

...roboticus

When your only tool is a hammer, all problems look like your thumb.


Comment on Re: anyevent + fork = problem

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (18)
As of 2015-07-31 15:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (279 votes), past polls