Module: kamailio Branch: master Commit: c178f4427af82d6d33101677835c60de1c343073 URL: https://github.com/kamailio/kamailio/commit/c178f4427af82d6d33101677835c60de...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2015-04-15T11:25:18+02:00
tls: updated to use shm_available_safe()
---
Modified: modules/tls/tls_server.c
---
Diff: https://github.com/kamailio/kamailio/commit/c178f4427af82d6d33101677835c60de... Patch: https://github.com/kamailio/kamailio/commit/c178f4427af82d6d33101677835c60de...
---
diff --git a/modules/tls/tls_server.c b/modules/tls/tls_server.c index be020ec..3f87fc8 100644 --- a/modules/tls/tls_server.c +++ b/modules/tls/tls_server.c @@ -59,10 +59,10 @@ int tls_run_event_routes(struct tcp_connection *c); /* low memory treshold for openssl bug #1491 workaround */ #define LOW_MEM_NEW_CONNECTION_TEST() \ (cfg_get(tls, tls_cfg, low_mem_threshold1) && \ - (safe_shm_available() < cfg_get(tls, tls_cfg, low_mem_threshold1))) + (shm_available_safe() < cfg_get(tls, tls_cfg, low_mem_threshold1))) #define LOW_MEM_CONNECTED_TEST() \ (cfg_get(tls, tls_cfg, low_mem_threshold2) && \ - (safe_shm_available() < cfg_get(tls, tls_cfg, low_mem_threshold2))) + (shm_available_safe() < cfg_get(tls, tls_cfg, low_mem_threshold2)))
#define TLS_RD_MBUF_SZ 65536 #define TLS_WR_MBUF_SZ 65536