<p></p>
<p>Agreed <a class="user-mention" data-hovercard-type="user" data-hovercard-url="/users/miconda/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/miconda">@miconda</a> , Your input and guidance on the below is needed</p>
<p>From the code, each profile inside tls.cfg maps to this data structure tls_domain_t, which contains SSL_CTX** ctx; and this is an array of the child tcp process list.</p>
<p>What was the reason to keep it an array list, if am populating the same data to each and every member of the array list ? only one context would have been sufficient instead of an array of context inside tls_domain_t ?</p>
<p>Am just trying to understand what prompted to keep it as an array list of ssl_ctx, instead of a single ssl_ctx. So that could get to know the bigger picture of it and then think of how to resolve it and test it on my setup.</p>
<p>The problem is clear, running the for loop for the tcp child process list for each profile , is consuming time.</p>
<p>why is it SSL_CTX** ctx array, and not just SSL_CTX *ctx , if all the array elements contain the same information.</p>
<p>If you say , SSL_CTX has to be an array though it contains the same value in each item of the array for some design reason - it needs a deeper study on the tls module from my side on how to solve the problem. (Just a guess, probably spawn threads to run them parallely, instead of a single thread doing it)</p>
<p>If you say, SSL_CTX can be just a pointer, it looks like a straight forward problem to resolve.</p>
<p>Regards,<br>
Mahesh.B</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/2312#issuecomment-627891390">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZK6DI747D5KGPZ4ZULRRJX25ANCNFSM4MYCR5TQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZMA25GLM42JR7W73FDRRJX25A5CNFSM4MYCR5T2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEVWNZPQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2312#issuecomment-627891390",
"url": "https://github.com/kamailio/kamailio/issues/2312#issuecomment-627891390",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>