in reply to Re: Threads and ALARM() - There is a solution or workaround?
in thread Threads and ALARM() - There is a solution or workaround?

Thanks for answer. But there is no solution? I need to have a slow program? It's kind of disappointing. There is another option instead of alarm() to timeout my call to Net::SOCKS? Some workaround as select() in C? Maybe threads queue? I'm very new to perl, but I can't believe that a simple task like that is unsolved. Thank you
  • Comment on Re^2: Threads and ALARM() - There is a solution or workaround?

Replies are listed 'Best First'.
Re^3: Threads and ALARM() - There is a solution or workaround?
by ikegami (Patriarch) on May 10, 2010 at 17:20 UTC

    In general, you could avoid alarm by using select with a timeout, or you could avoid using threads by forking instead.

    The Net::SOCKS object might by a selectable file handle.