Hi All,
I have a process that is having it's (MySQL DBI and Net::LDAP) connections terminated by a firewall after a period of inactivity. The problem is that the process (client) doesn't know this and attempts to read (well, actually the ldaps earch function and the mysql do function) from a broken connection and hangs.
There are no client side query timeout settings for either module.
So, I'm guessing that I need the ability to cause a timeout. In C I would use alarm signals or select. What's the best way to do this in Perl?
Thanks for any help on this.
rotis23
I have a process that is having it's (MySQL DBI and Net::LDAP) connections terminated by a firewall after a period of inactivity. The problem is that the process (client) doesn't know this and attempts to read (well, actually the ldaps earch function and the mysql do function) from a broken connection and hangs.
There are no client side query timeout settings for either module.
So, I'm guessing that I need the ability to cause a timeout. In C I would use alarm signals or select. What's the best way to do this in Perl?
Thanks for any help on this.
rotis23