Thanks Chris, that looks much simpler than an external timeout mechanism. The default timeout for SO_KEEPALIVE seems to be 2 hours. Any ideas how I can change this to 30 mins for example?
--- Chris Ridd <[EMAIL PROTECTED]> wrote: > On 17/3/05 9:03 pm, Chris Masters > <[EMAIL PROTECTED]> wrote: > > > Hi All, > > > > A pesky firewall is closing connections silently > after > > a period of inactivity. When my client calls > search it > > hangs. > > > > What's the best way to place a timeout on the > search > > call? In C, I would use an alarm signal or > select(2). > > > > Thanks for any help on this. > > Does setting SO_KEEPALIVE on the socket help at all? > You can get the socket > object using $ldap->socket. > > Cheers, > > Chris > > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com