Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: network socket send loop is very cpu intensive

by ptkdb (Monk)
on Nov 18, 2003 at 12:51 UTC ( [id://307961]=note: print w/replies, xml ) Need Help??


in reply to network socket send loop is very cpu intensive

Looking closely, you've got your 'opendir/closedir' outside of your while(1) loop. So this loop is going to go once on the first opendir, and then 'spin' out of control as it breaks out of the inner while afterwards, but keeps trying the exhausted DH again and again and again and again.

You did step through this code with a debugger before you sent it here didn't you?

  • Comment on Re: network socket send loop is very cpu intensive

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2024-04-25 15:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found