Module: kamailio
Branch: master
Commit: 62b4ee4a0d0b62b35c8bdf67e5daf9cbe9a28499
URL:
https://github.com/kamailio/kamailio/commit/62b4ee4a0d0b62b35c8bdf67e5daf9c…
Author: S-P Chan <shihping.chan(a)gmail.com>
Committer: S-P Chan <shihping.chan(a)gmail.com>
Date: 2024-10-19T10:15:34+08:00
app_python3s: refactor GIL and thread state handling
* incorrectly using PyGILState_XXX functions; these functions are
for threads launched by Python unaware libraries
* if the KEMI script used Python threading these threads would be
blocked after returning to the Kamailio event loop as the GIL
was not released
Fix is to use Py_BLOCK|UNBLOCK_THREADS macros
---
Modified: src/modules/app_python3s/app_python3s_mod.c
Modified: src/modules/app_python3s/apy3s_kemi.c
---
Diff:
https://github.com/kamailio/kamailio/commit/62b4ee4a0d0b62b35c8bdf67e5daf9c…
Patch:
https://github.com/kamailio/kamailio/commit/62b4ee4a0d0b62b35c8bdf67e5daf9c…