Pre-Submission Checklist

Type Of Change

Checklist:

Description

This PR aims to implement what was discussed in mailing list regarding some tls.reload and increasing memory usage.

It adds a new parameter enable_shared_ctx in tls module that if set to 0, preserves the old behavior and if set to 1 (other than 0 tbh), it creates a single SSL context that is being shared. This have the effect of using way less memory when initialized as well, but also minimizes (can't say it fixes the problem) the tls.reload memory increase.

I have also added a small markdown (comparison.md) file, where some comparisons where made between enabled/disabled shared context and with/without CA file (where the initial problem was occurring by the reporter).

Feedback would be necessary to verify whether this patch, acts as expected and kamailio works as intented.


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

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

Commit Summary

File Changes

(4 files)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <kamailio/kamailio/pull/3972@github.com>