Timeout values passed to alarm(), select(), poll(), or other such system calls do have maximum values. If the value you specify exceeds the maximum value, the usual behaviour is for the operating system is to use the maximum value. Your implementation is not reliable due to this limitation.
One solution for you may be to disable the timeout code for the getline() method: $socket->getline(Timeout => undef);
In reply to Re: Problem Keeping Socket Alive
by MarkM
in thread Problem Keeping Socket Alive
by skamerman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |