[OpenSIPS-Devel] [OpenSIPS/opensips] ff09d4: add ASYNC_CHANGE_FD status in reactor

Liviu Chircu liviu at opensips.org
Fri Feb 19 19:04:07 CET 2016


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: ff09d4971b37443d26c93acb7d57c012e6371d2e
      https://github.com/OpenSIPS/opensips/commit/ff09d4971b37443d26c93acb7d57c012e6371d2e
  Author: ionutrazvanionita <ionutionita at opensips.org>
  Date:   2016-02-18 (Thu, 18 Feb 2016)

  Changed paths:
    M async.h
    M modules/tm/async.c
    M modules/tm/async.h
    M net/net_tcp_proc.c
    M net/net_udp.c

  Log Message:
  -----------
  add ASYNC_CHANGE_FD status in reactor

Allows changing the file descriptor in the resume function. Such
functionality is useful for failover purposes, like having
multiple destinations, you find that one is not working only in
the resume function and you want to try another one. Now you
can change the file descriptor, remove the old one and add the
new descriptor and then wait for it to be triggered.


  Commit: 9abcf92b250c33b0347d178d082253dc426a2fec
      https://github.com/OpenSIPS/opensips/commit/9abcf92b250c33b0347d178d082253dc426a2fec
  Author: ionutrazvanionita <ionutionita at opensips.org>
  Date:   2016-02-18 (Thu, 18 Feb 2016)

  Changed paths:
    M db/db.h
    M modules/avpops/avpops_impl.c
    M modules/avpops/avpops_impl.h
    M modules/db_mysql/dbase.c
    M modules/db_mysql/dbase.h
    M modules/sipcapture/sipcapture.c

  Log Message:
  -----------
  hold db state between async call and resume function

Databases can now keep their state between the async call and the
resume parameter using a newly added (void*) parameter. It is the
job of the upper layer(the module calling the async function) to
store this database state inside the (void*) parameter they are using
to hold their state (see avpops and sipcapture async handling).

Also this patch handles the new ASYNC_CHANGE_FD state in avpops
and sipcapture.


  Commit: 737ced7cc55f68e300bedde3b76694aff96cf5e0
      https://github.com/OpenSIPS/opensips/commit/737ced7cc55f68e300bedde3b76694aff96cf5e0
  Author: ionutrazvanionita <ionutionita at opensips.org>
  Date:   2016-02-18 (Thu, 18 Feb 2016)

  Changed paths:
    M modules/db_virtual/README
    M modules/db_virtual/db_virtual.c
    M modules/db_virtual/db_virtual.h
    M modules/db_virtual/dbase.c
    M modules/db_virtual/dbase.h
    M modules/db_virtual/doc/db_virtual_admin.xml

  Log Message:
  -----------
  async support for db_virtual


  Commit: 9cf7bec320d7bc8b35005aabab0b56b3d3e1c1a0
      https://github.com/OpenSIPS/opensips/commit/9cf7bec320d7bc8b35005aabab0b56b3d3e1c1a0
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2016-02-19 (Fri, 19 Feb 2016)

  Changed paths:
    M async.h
    M db/db.h
    M modules/avpops/avpops_impl.c
    M modules/avpops/avpops_impl.h
    M modules/db_mysql/dbase.c
    M modules/db_mysql/dbase.h
    M modules/db_virtual/README
    M modules/db_virtual/db_virtual.c
    M modules/db_virtual/db_virtual.h
    M modules/db_virtual/dbase.c
    M modules/db_virtual/dbase.h
    M modules/db_virtual/doc/db_virtual_admin.xml
    M modules/sipcapture/sipcapture.c
    M modules/tm/async.c
    M modules/tm/async.h
    M net/net_tcp_proc.c
    M net/net_udp.c

  Log Message:
  -----------
  Merge pull request #715 from ionutrazvanionita/db_virtual_async

ASYNC_CHANGE_FD status + db engine async state parameter + db_virtual async


Compare: https://github.com/OpenSIPS/opensips/compare/bd94e6b2f06a...9cf7bec320d7


More information about the Devel mailing list