[Date Prev][Date Next]
Re: stats (and back-monitor) counters wrap when overflowing (ITS#3324)
>It's a bit of an indirection, but I note that OpenSSL includes a BigNum
>library for arbitrary precision. I'm hesitant to make OpenSSL a
>requirement to support back-monitor, but since all of my deployments
>include OpenSSL anyway, I'm also reluctant to add another math library
Honestly, I preferred to use GMP if available; if not,
counters wrap, but at least remain unsigned!
Here's the output.
[masarati@ando ldap]$ ldapsearch -x -H ldap://:9011 -b
cn=statistics,cn=monitor monitorcounter -LLL
I haven't checked yet if it still works without GMP
because I can't find a machine without, I'll manually
modify portable.h. I haven't used the custom malloc
facilities of GMP; do you think it's worth, or should
we stay with system's malloc?
SysNet - via Dossi,8 27100 Pavia Tel: +390382573859 Fax: +390382476497