|
From: David L. <dav...@cs...> - 2000-08-16 11:41:06
|
---------- Forwarded message ----------
Date: Wed, 16 Aug 2000 21:39:20 +1000
From: Dr. Ross Lazarus <ro...@me...>
To: David Leonard <dav...@cs...>
Subject: Re: Update - it's the search_s in ldapmodule which leaks when
usingldapmodule
I inherited some of the setup here so I didn't even try to grok why
"import ldap" worked when ldapmodule.so was available - it was always
called that - not _ldapmodule.so - I suspect the initial setup.
Anyhoo, it works as intended now.
I don't use the cache so I'll turn it off - I didn't realise it affected
the client libraries - thanks. I'll let you know if it leaks differently
(!).
<a few minutes later>
Nope, no apparent difference.
I reverted to a fresh copy of the original tar and compiled with that
one mod. to the Makefile.in - that tarball appears fit for human
consumption.
May I suggest you might add to the readme, something along the lines of
your reply below
"
the init function is usually called init_ldap() so the module
is called _ldap. when installed properly theres a ldap.py file that
wraps it.
"
Note for zope users: After the configure and make steps, put the output
(Modules/_ldapmodule.so) and Lib/ldap.py into your [zope]/lib/python
directory where it will be found by external methods and products.
for future generations of grateful end users.....
David Leonard wrote:
>
> On Wed, 16 Aug 2000, Dr. Ross Lazarus typed thusly:
>
> > ah, well.
> > I've always produced an ldapmodule.so and the _ldapmodule.so didn't drop
> > in to place correctly (and broke when renamed...).
> > > > breaks. I had to hack the ldapmodule.c file to use ldap instead of _ldap
> > > > and also the Setup file in Modules to generate ldap instead of _ldap and
> > > > the Makefile ditto..
>
> the init function is usually called init_ldap() so the module
> is called _ldap. when installed properly theres a ldap.py file that
> wraps it.
>
> > Whatever, I somehow got something called ldapmodule.so which works!!
> >
> > > > Still leaking about 112 bytes per 1000 calls to ldap_search_s
> > > >
> > > > Why or how it's less than 1 byte per call beats me!!!! - but it's MUCH
> > Why less than 1 byte per call?
>
> no idea. could be the ldap library itself. do you disable the cache?
>
> good to hear that its working for you though
>
> --
> David Leonard Dav...@cs...
> Dept of Comp. Sci. and Elec. Engg _ Room:78-640 Ph:+61 7 336 51187
> The University of Queensland |+| http://www.csee.uq.edu.au/~leonard/
> QLD 4072 AUSTRALIA ~` '~ E2A24DC6446E5779D7AFC41AA04E6401
>
> Curses! - Mojo Jojo
--
Dr Ross Lazarus
Associate Professor and Sub-Dean for Information Technology
Faculty of Medicine, Room 126A, A27, University of Sydney,
Camperdown, NSW 2006, Australia
Tel: (+61 2) 93514429 Mobile: +61414872482
Fax: (+61 2) 93516646 Email: ro...@me...
|