On 10 Dec 2003, at 14:49, Brendan E. Quinn wrote:
Hi folks,

I've written an ldap server load testing tool using Net::LDAP, and I'm getting an odd (and inconsistent) error:

"LDAP_SASL_BIND_IN_PROGRESS" is not exported by the Net::LDAP::Constant module at /usr/lib/perl5/site_perl/5.8.0/Net/LDAP/Bind.pm line 8
Can't continue after import errors at /usr/lib/perl5/site_perl/5.8.0/Net/LDAP/Bind.pm line 8
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.0/Net/LDAP/Bind.pm line 8, <DATA> line 414.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.0/Net/LDAP.pm line 294, <DATA> line 414.

Its odd you would see that.


All that works perfectly, when I'm spawning small (>100) children. Above that, things get wierd. At some point (different from run to run), the above error starts to be generated. It's quite possible I'm running into an OS imposed, or shell imposed limit on file descriptors, sockets, or some such, but running as root doesn't seem to improve the situation.

Try adding


  use Net::LDAP::Bind;
  use Net::LDAP::Search;

into your main script so those packages are loaded before you fork.

If that solves your problem, then it may be something todo with file descriptors.

Graham.




Reply via email to