[dovecot/core] 673e0a: lib: Add and use io_loop_run_get_wait_time()

GitHub noreply at github.com
Thu Aug 23 19:30:07 EEST 2018


  Branch: refs/heads/master
  Home:   https://github.com/dovecot/core
  Commit: 673e0aa8704a8f1b16eb95e7a2c275097dcba254
      https://github.com/dovecot/core/commit/673e0aa8704a8f1b16eb95e7a2c275097dcba254
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2018-08-22 (Wed, 22 Aug 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: 639c760bf33636904c66d599b5e12eb5618cd451
      https://github.com/dovecot/core/commit/639c760bf33636904c66d599b5e12eb5618cd451
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2018-08-22 (Wed, 22 Aug 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: 6293b4f9503124d2f5c1fb8b2575a44943066834
      https://github.com/dovecot/core/commit/6293b4f9503124d2f5c1fb8b2575a44943066834
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2018-08-22 (Wed, 22 Aug 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: 0d7918aea2aa4adab090e9649186e0e74967a655
      https://github.com/dovecot/core/commit/0d7918aea2aa4adab090e9649186e0e74967a655
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2018-08-22 (Wed, 22 Aug 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/f0981da62a2b...0d7918aea2aa
      **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