[dovecot/core] 395e41: dict-client: Avoid excessive CPU usage while waiti...

GitHub noreply at github.com
Mon Oct 8 15:30:07 EEST 2018


  Branch: refs/heads/master
  Home:   https://github.com/dovecot/core
  Commit: 395e41c593bc746b426bbe213554d313bdc91f11
      https://github.com/dovecot/core/commit/395e41c593bc746b426bbe213554d313bdc91f11
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2018-10-08 (Mon, 08 Oct 2018)

  Changed paths:
    M src/lib-dict/dict-client.c

  Log Message:
  -----------
  dict-client: Avoid excessive CPU usage while waiting commands to finish

client_dict_add_timeout() adds the timeout thinking that the dict no longer
has any work to do, so it can be freed soon. However, if other work is
added before that, the timeout just keeps getting called over and over
again. This is especially bad with the default idle timeout of 0.



      **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the dovecot-cvs mailing list