Under high load, the value returned by shm_available() can be total garbage, because it is not multiprocess safe. In the tls module, it makes the tests against the low_mem_thresholdX limits randomly return false positives, with errors such as:

ERROR: tls [tls_server.c:273]: tls_fix_connection(): tls: ssl bug #1491 workaround: not enough memory for safe operation: 88

although there is plenty of free shm memory.

This patch solves the issue by adding a safe version of the function.


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

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

Commit Summary

File Changes

Patch Links:


Reply to this email directly or view it on GitHub.