From: Graham B. <gb...@po...> - 2000-06-27 19:28:44
|
Thanks for an update. I will include this somewhere in the docs, I just have to decide where :) Graham. On Tue, Jun 27, 2000 at 11:31:30AM -0500, Bryan Thale wrote: > 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... > > > |