<p></p>
<p dir="auto">I'm sorry to disappoint - we haven't prioritized this as we've mostly gotten away from these errors.<br>
For us, the main source of problems was actually a very slow <code class="notranslate">sht_rm_name_re</code> in our configs. We store connection information in an htable and this regex call was causing the WebSocket module to slow down while iterating over each connection.<br>
We ended up replacing the regex call with explicit <code class="notranslate">sht_rm</code> calls in. our config which solved the problem for us. We do still encounter these WebSocket errors occasionally, and I do believe the pseudocode posted above is still valid.</p>
<p dir="auto">I'm sorry we haven't take the time to try that out yet.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/2990#issuecomment-1299317872">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZKGFE4IKF3LSRKEF2DWGGMADANCNFSM5K6ZG4QA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/ABO7UZNXUIYIWSI6OADKTITWGGMADA5CNFSM5K6ZG4QKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOJVZAI4A.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><kamailio/kamailio/issues/2990/1299317872</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2990#issuecomment-1299317872",
"url": "https://github.com/kamailio/kamailio/issues/2990#issuecomment-1299317872",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>