Re: reading socket stream with timeout

2005-05-09 Thread Foo Ji-Haw
You mean trapping signals? ActivePerl can trap the usual like Ctrl-C. But I don't know how well supported it is there. David Nicol wrote: On 5/7/05, Foo Ji-Haw <[EMAIL PROTECTED]> wrote: Great idea. Will check that out as well. Thanks. But as a technical question, has anyone faced such a probl

Re: reading socket stream with timeout

2005-05-09 Thread David Nicol
On 5/7/05, Foo Ji-Haw <[EMAIL PROTECTED]> wrote: > Great idea. Will check that out as well. Thanks. > > But as a technical question, has anyone faced such a problem? If so, how > do you resolve this? alarm 5; $SIG{ALRM} = sub {what to do when the alrm happens}; works with cygperl but not activepe