Module: kamailio Branch: master Commit: 609758beb0c70eb881158230bc402003016aebe0 URL: https://github.com/kamailio/kamailio/commit/609758beb0c70eb881158230bc402003016aebe0
Author: Kamailio Dev <[email protected]> Committer: Kamailio Dev <[email protected]> Date: 2018-02-26T20:31:21+01:00 modules: readme files regenerated - app_python3 ... [skip ci] --- Modified: src/modules/app_python3/README --- Diff: https://github.com/kamailio/kamailio/commit/609758beb0c70eb881158230bc402003016aebe0.diff Patch: https://github.com/kamailio/kamailio/commit/609758beb0c70eb881158230bc402003016aebe0.patch --- diff --git a/src/modules/app_python3/README b/src/modules/app_python3/README index 518f72c71d..1010241b2c 100644 --- a/src/modules/app_python3/README +++ b/src/modules/app_python3/README @@ -183,11 +183,16 @@ python_exec("my_python_function", "$rU"); 5.1. app_python.reload - IMPORTANT: not functional yet (can crash a running instance, use it - only for testing). + IMPORTANT: this is not thread-safe. In your Python script do not use C + extensions with threads that call into apy_exec(). Marks the need to reload the Python script. The actual reload is done - by every working process when the next call to KEMI config is executed. + in each worker when it next invokes a Python method. The module uses a + worker process lock to prevent recursive reloads. + + This function only reloads the user script and creates a new script + object. It does not reinitialize the interpreter. E.g., references in + the old module remain if not redefined by the new version. Name: app_python.reload _______________________________________________ Kamailio (SER) - Development Mailing List [email protected] https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
