[OpenSIPS-Devel] [OpenSIPS/opensips] 164dbe: Fix async sleep() in sync mode.

Bogdan-Andrei Iancu bogdan at opensips.org
Thu Aug 6 19:25:14 CEST 2015


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 164dbe53752783f7dd1c96c9a6a1874385241337
      https://github.com/OpenSIPS/opensips/commit/164dbe53752783f7dd1c96c9a6a1874385241337
  Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
  Date:   2015-08-06 (Thu, 06 Aug 2015)

  Changed paths:
    M modules/cfgutils/cfgutils.c

  Log Message:
  -----------
  Fix async sleep() in sync mode.

If the timer FD cannot be placed in reactor, the resume will work (in sync way), but without any actual sleep. We fix this by remembering the time when the sleep should finish and checking it again in resume function.




More information about the Devel mailing list