[dovecot/core] 3f5062: lib: Add and use io_loop_run_get_wait_time()

GitHub noreply at github.com
Wed Sep 12 09:30:17 EEST 2018


  Branch: refs/heads/master-2.3
  Home:   https://github.com/dovecot/core
  Commit: 3f50629705d557be838d0a25020fa1558a0aec4b
      https://github.com/dovecot/core/commit/3f50629705d557be838d0a25020fa1558a0aec4b
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2018-09-12 (Wed, 12 Sep 2018)

  Changed paths:
    M src/lib/ioloop-epoll.c
    M src/lib/ioloop-kqueue.c
    M src/lib/ioloop-poll.c
    M src/lib/ioloop-private.h
    M src/lib/ioloop-select.c
    M src/lib/ioloop.c

  Log Message:
  -----------
  lib: Add and use io_loop_run_get_wait_time()

This is going to be called just before running an ioloop iteration.
The next commit improves its behavior.


  Commit: a5ad7e3161ff9f762130d13970ba6d6a37604d82
      https://github.com/dovecot/core/commit/a5ad7e3161ff9f762130d13970ba6d6a37604d82
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2018-09-12 (Wed, 12 Sep 2018)

  Changed paths:
    M src/lib/ioloop-private.h
    M src/lib/ioloop.c
    M src/lib/ioloop.h

  Log Message:
  -----------
  lib: Add io_set_never_wait_alone()

If ioloop is run without any timeouts and without IOs that don't have this
flag, assert-crash rather than going to infinite wait.


  Commit: ca4ab3eb5a75bf670e6f82aa091c5e655cfaf094
      https://github.com/dovecot/core/commit/ca4ab3eb5a75bf670e6f82aa091c5e655cfaf094
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2018-09-12 (Wed, 12 Sep 2018)

  Changed paths:
    M src/lib/ioloop-epoll.c
    M src/lib/ioloop-kqueue.c

  Log Message:
  -----------
  lib: ioloop-epoll/kqueue: Remove now unnecessary infinite wait check.

The previous change adds this globally to io_loop_run_get_wait_time().


  Commit: 7596390c0134db9a4b5ef1782735513f8bebde0a
      https://github.com/dovecot/core/commit/7596390c0134db9a4b5ef1782735513f8bebde0a
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2018-09-12 (Wed, 12 Sep 2018)

  Changed paths:
    M src/lib/lib-signals.c

  Log Message:
  -----------
  lib: Mark signal waiting IO as "never wait alone"

This signal is being automatically moved to nested ioloops. It can't be the
only IO being waited, since there's no code that simply wants to wait for a
signal.


Compare: https://github.com/dovecot/core/compare/1705fbf2ada4...7596390c0134
      **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