[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#8952) olcIdleTimeout < 4 causes high CPU usage on some systems



openldap-bugs@PaulSD.com wrote:
> Both epoll and the solaris /dev/poll infrastructure support only millisecond
> resolution, not microsecond resolution, so I assume the microseconds were simply
> dropped for simplicity.
> 
> Could (tvp)->tv_sec*1000 be changed to (tvp)->tv_sec*1000+(tvp)->tv_usec/1000 to
> correct this issue?
> https://www.openldap.org/devel/gitweb.cgi?p=openldap.git;a=blob;f=servers/slapd/daemon.c;h=2bdb60aa1d74e6ff674fac41cf1f8d261b3c9b96;hb=HEAD#l536
> https://www.openldap.org/devel/gitweb.cgi?p=openldap.git;a=blob;f=servers/slapd/daemon.c;h=2bdb60aa1d74e6ff674fac41cf1f8d261b3c9b96;hb=HEAD#l712

Thanks for the report. Changed in git master, please test.
> 
> 


-- 
  -- Howard Chu
  CTO, Symas Corp.           http://www.symas.com
  Director, Highland Sun     http://highlandsun.com/hyc/
  Chief Architect, OpenLDAP  http://www.openldap.org/project/