<h3>Description</h3>
<p>Hello,<br>
Kamailio -master version couldnt relay tcp request to other sides. it gives EAGAIN error. When i test scenario on kamailio-5.2 version , it can relay.</p>
<h3>Troubleshooting</h3>
<h4>Reproduction</h4>
<pre><code>route[TCPTEST]{
remove_hf("Route");
#loose_route();
if (!is_method("INVITE")) return;

$du="sip: mykamailio1.test:5060;transport=tcp";

if(!t_newtran()){
 xlog("L_WARN"," Couldnt create new transaction \r\n");
 sl_send_reply("503", "Service not available");
 exit;
}

if(!t_relay()){
 send_reply("503", "Service not available");
 exit;
}
exit;
}

</code></pre>
<h4>Debugging Data</h4>
<h4>Log Messages</h4>

<pre><code> 7(15781) DEBUG: <core> [core/tcp_main.c:1229]: tcpconn_new(): on port 5060, type 2
 7(15781) DEBUG: <core> [core/tcp_main.c:1539]: tcpconn_add(): hashes: 507:2382:0, 2
 7(15781) DEBUG: <core> [core/tcp_main.c:2873]: tcpconn_1st_send(): pending write on new connection 0x7fd15b5e7c98 (-1/1483 bytes written) (err: 11 - Resource temporarily unavailable)
 7(15781) ERROR: <core> [core/tcp_main.c:2891]: tcpconn_1st_send(): [FD61:C23C:B3B6:0:0:0:0:5]:5060: EAGAIN and write queue full or failed for 0x7fd15b5e7c98
 7(15781) DEBUG: <core> [core/tcp_main.c:3153]: tcpconn_chld_put(): destroying connection 0x7fd15b5e7c98 (2, -1) flags 0060
 
 7(15781) ERROR: tm [../../core/forward.h:251]: msg_send_buffer(): tcp_send failed
</code></pre>
<h4>SIP Traffic</h4>

<pre><code>UAC: IPv6: TCP ---> Kamailio (5.2) :IPv6 :TCP --->  Client or Server IPv6:TCP 
</code></pre>
<h3>Possible Solutions</h3>

<h3>Additional Information</h3>
<pre><code>Kamailio master from git
</code></pre>
<ul>
<li><strong>Operating System</strong>:</li>
</ul>

<pre><code>NAME="CentOS Linux"
VERSION="7 (Core)"
3.10.0-957.1.3.el7.x86_64
</code></pre>

<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">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZSsE6fUYr5zCRH3kpSy5hZzRq6dkks5vKRtLgaJpZM4aik9n">mute the thread</a>.<img src="https://github.com/notifications/beacon/AF36ZReCs35V2q8ql2n3qMjbpzBQjysLks5vKRtLgaJpZM4aik9n.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":"DESCRIPTION","message":"Kamailio-Master tcp request relaying problem (EAGAIN) (#1836)"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1836"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/1836",
"url": "https://github.com/kamailio/kamailio/issues/1836",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>