James Byrne wrote:
> So would it be better to have something more of the structure?
local $SIG{ALRM} = sub { $self->die_with_error("SSL read timeout") }; eval { alarm(timeout) .... }; alarm(0); ...
That way we are sure the alarm is being switched off, even if we fail?
This is, indeed, a common (and recommended) structure. In some cases you put the alarm(0) both at the bottom of the eval block and after the eval block. It causes no harm to call alarm(0) twice.
I can't tell you if this will fix your problem however, as I haven't taken the time to look further into the distributions for this issue.
All the best,
Jacinta
-- ("`-''-/").___..--''"`-._ | Jacinta Richardson | `6_ 6 ) `-. ( ).`-.__.`) | Perl Training Australia | (_Y_.)' ._ ) `._ `. ``-..-' | +61 3 9354 6001 | _..`--'_..-_/ /--'_.' ,' | [EMAIL PROTECTED] | (il),-'' (li),' ((!.-' | www.perltraining.com.au |