in reply to Problem Keeping Socket Alive
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);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Problem Keeping Socket Alive
by skamerman (Initiate) on Dec 23, 2002 at 22:14 UTC |