<p>I reverted small amount of code and this fixed issue. Diff follows.</p>
<div class="highlight highlight-source-diff"><pre><span class="pl-md">--- a/src/core/tcp_main.c</span>
<span class="pl-mi1">+++ b/src/core/tcp_main.c</span>
<span class="pl-mdr">@@ -643,7 +643,6 @@</span> inline static int _wbufq_add(struct  tcp_connection* c, const char* data,
                wb_size=MAX_unsigned(cfg_get(tcp, tcp_cfg, wq_blk_size), size);
                wb=shm_malloc(sizeof(*wb)+wb_size-1);
                if (unlikely(wb==0))
<span class="pl-md"><span class="pl-md">-</span>                  SHM_MEM_ERROR;</span>
                        goto error;
                wb->b_size=wb_size;
                wb->next=0;</pre></div>

<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/1836#issuecomment-462309365">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZaOqYZjIpYoLEjNxsWzVv0LY4tFrks5vMWDAgaJpZM4aik9n">mute the thread</a>.<img src="https://github.com/notifications/beacon/AF36ZfIktsw7jGpIWPIVcUbxYXrpmbiFks5vMWDAgaJpZM4aik9n.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":"@sergey-safarov in #1836: I reverted small amount of code and this fixed issue. Diff follows.\r\n```diff\r\n--- a/src/core/tcp_main.c\r\n+++ b/src/core/tcp_main.c\r\n@@ -643,7 +643,6 @@ inline static int _wbufq_add(struct  tcp_connection* c, const char* data,\r\n \t\twb_size=MAX_unsigned(cfg_get(tcp, tcp_cfg, wq_blk_size), size);\r\n \t\twb=shm_malloc(sizeof(*wb)+wb_size-1);\r\n \t\tif (unlikely(wb==0))\r\n-\t\t        SHM_MEM_ERROR;\r\n \t\t\tgoto error;\r\n \t\twb-\u003eb_size=wb_size;\r\n \t\twb-\u003enext=0;\r\n```"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1836#issuecomment-462309365"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/1836#issuecomment-462309365",
"url": "https://github.com/kamailio/kamailio/issues/1836#issuecomment-462309365",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>