<ol>
<li>
<p>Does your routing script use threading or indirectly via python modules which use threading?</p>
</li>
<li>
<p>Can you reproduce this if you modify the logic to only initialize the threading bits after fork i.e. rank>0?</p>
</li>
<li>
<p>Don't initialize logic that uses threading pre fork().</p>
</li>
</ol>

<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/1916#issuecomment-478386901">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZZKz3zWgW7V-2m4Q_5zJ5iJxYGvjks5vcSj4gaJpZM4cUjPw">mute the thread</a>.<img src="https://github.com/notifications/beacon/AF36ZSP1YIYeifJZdP4MGi8uPebmBSvnks5vcSj4gaJpZM4cUjPw.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"PERSON","message":"@aalba6675 in #1916: 1. Does your routing script use threading or indirectly via python modules which use threading?\r\n\r\n2. Can you reproduce this if you modify the logic to only initialize the threading bits after fork i.e. rank\u003e0?\r\n\r\n3. Don't initialize logic that uses threading pre fork(). "}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1916#issuecomment-478386901"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/1916#issuecomment-478386901",
"url": "https://github.com/kamailio/kamailio/issues/1916#issuecomment-478386901",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>