From: Bryan T. <th...@rs...> - 2000-06-27 16:35:38
|
Thanks for your help Graham. Here is what I finally ended up with based on your outline, a little wrapper routine to do the dirty work waiting for the request to complete or time out. # # Wait for an async request to complete or time out # sub async_request { my ($ldap, $completion, $timeout) = @_; my $selector = IO::Select->new( $ldap->socket ); while ($selector->can_read( $timeout )) { $ldap->_recvresp(); last if ($completion->done()); } return $completion; } It seems to be catching all three failure modes that I've observed from my LDAP server. Thanks, Bryan. -- Bryan Thale Motorola Labs, Networking and Infrastructure Research mailto:th...@rs... |