Pre-Submission Checklist

Type Of Change

Checklist:

Description

Implement script reloading by copying the method used in app_lua: the version of the script is incremented by RPC.

For each worker, the next time it handles a method, python_exec.c:apy_exec()
will check for a newer version and reload, if necessary.

Set a lock so the script reload only occurs at depth 0 (in the unlikely case
that apy_exec() is called recursively).

This is not thread-safe as we are using a process-wide lock: don't call back
into apy_exec() from a Python C extension that uses threads.

For Pythonistas, we are reloading the module, not reinitializing the interpreter.
Standard caveats about reloading modules apply. E.g, references in the old module
that are not redefined in the newer module remain.


You can view, comment on, or merge this pull request online at:

  https://github.com/kamailio/kamailio/pull/1456

Commit Summary

File Changes

Patch Links:


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.