Is there actually any data coming in on your $sock? Is the $sock set to blocking mode? If you're blocked, and there is no data, the OS will wait forever. You're better off using select (or IO::Select) to give a timeout to your waiting. Then you won't need time, either.
In reply to Re: Issue with time() in loop?
by Tanktalus
in thread Issue with time() in loop?
by Elijah
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |