<div dir="ltr">Hi all,<div><br></div><div>After running opensips for a while (one or two days), I got this log message:</div><div><br></div><div><i>INFO:core:send2child: no free tcp receiver, connection passed to the least busy one (46)<br clear="all"></i><div><i>INFO:core:probe_max_sock_buff: using snd buffer of 509 kb</i><br></div><div><br></div><div>Then I checked the number of tcp connections:</div><div>#<i>opensipsctl fifo list_tcp_conns</i><br></div><div><br></div><div>It displayed about 145 connections, but it&#39;s impossible since this is the testing server only. Here are all the output:</div><div>-----------------------------<br></div><div><div>Connection::  ID=1203 Type=tls State=18446744073709551615 Source=<a href="http://67.21.5.36:12497">67.21.5.36:12497</a> Destination=sip_test_ip:5061 Timeout=2014-12-02 01:33:26 Pending lifetime=135250</div><div>Connection::  ID=1206 Type=tcp State=3 Source=<a href="http://162.236.129.149:62237">162.236.129.149:62237</a> Destination=sip_test_ip:5060 Timeout=2014-12-03 14:10:18 Pending lifetime=0</div><div>Connection::  ID=1214 Type=tcp State=3 Source=<a href="http://162.236.129.149:62272">162.236.129.149:62272</a> Destination=sip_test_ip:5060 Timeout=2014-12-03 14:24:18 Pending lifetime=0</div><div>Connection::  ID=1221 Type=tls State=0 Source=<a href="http://67.21.5.36:61790">67.21.5.36:61790</a> Destination=sip_test_ip:5061 Timeout=2014-12-03 15:38:27 Pending lifetime=137101</div><div>Connection::  ID=1222 Type=tcp State=3 Source=<a href="http://172.56.38.226:46235">172.56.38.226:46235</a> Destination=sip_test_ip:5060 Timeout=2014-12-03 14:41:55 Pending lifetime=0</div><div>Connection::  ID=1223 Type=tcp State=3 Source=<a href="http://172.56.38.226:27013">172.56.38.226:27013</a> Destination=sip_test_ip:5060 Timeout=2014-12-03 14:43:36 Pending lifetime=0</div><div>Connection::  ID=1224 Type=tcp State=3 Source=<a href="http://162.236.129.149:62314">162.236.129.149:62314</a> Destination=sip_test_ip:5060 Timeout=2014-12-03 14:45:10 Pending lifetime=0</div><div>Connection::  ID=1225 Type=tcp State=3 Source=<a href="http://162.236.129.149:62327">162.236.129.149:62327</a> Destination=sip_test_ip:5060 Timeout=2014-12-03 14:48:55 Pending lifetime=0</div><div>Connection::  ID=1226 Type=tcp State=3 Source=<a href="http://162.236.129.149:62344">162.236.129.149:62344</a> Destination=sip_test_ip:5060 Timeout=2014-12-03 14:59:33 Pending lifetime=0</div><div>Connection::  ID=1227 Type=tcp State=3 Source=<a href="http://162.236.129.149:62352">162.236.129.149:62352</a> Destination=sip_test_ip:5060 Timeout=2014-12-03 15:04:56 Pending lifetime=0</div><div>Connection::  ID=1228 Type=tcp State=3 Source=<a href="http://162.236.129.149:62366">162.236.129.149:62366</a> Destination=sip_test_ip:5060 Timeout=2014-12-03 15:15:34 Pending lifetime=0</div><div>Connection::  ID=1229 Type=tls State=3 Source=<a href="http://67.21.5.36:26619">67.21.5.36:26619</a> Destination=sip_test_ip:5061 Timeout=2014-12-03 15:16:41 Pending lifetime=0</div><div>Connection::  ID=1230 Type=tls State=3 Source=<a href="http://67.21.5.36:22292">67.21.5.36:22292</a> Destination=sip_test_ip:5061 Timeout=2014-12-03 15:19:29 Pending lifetime=0</div><div>[...]</div></div><div>-----------------------------</div><div><br></div><div>According to netstat, the server had lots of CLOSE_WAIT sockets:</div><div>-----------------------------</div><div><div>tcp      361      0 sip_test_ip:5061         <a href="http://67.21.5.36:32969">67.21.5.36:32969</a>            CLOSE_WAIT</div><div>tcp      361      0 sip_test_ip:5061         <a href="http://67.21.5.36:36210">67.21.5.36:36210</a>            CLOSE_WAIT</div><div>tcp      361      0 sip_test_ip:5061         <a href="http://67.21.5.36:17264">67.21.5.36:17264</a>            CLOSE_WAIT</div><div>tcp      361      0 sip_test_ip:5061         <a href="http://67.21.5.36:10884">67.21.5.36:10884</a>            CLOSE_WAIT</div><div>tcp      464      0 sip_test_ip:5060         <a href="http://172.56.38.226:65288">172.56.38.226:65288</a>         ESTABLISHED</div><div>tcp      361      0 sip_test_ip:5061         <a href="http://67.21.5.36:56345">67.21.5.36:56345</a>            CLOSE_WAIT</div><div>tcp      361      0 sip_test_ip:5061         <a href="http://67.21.5.36:46915">67.21.5.36:46915</a>            CLOSE_WAIT</div><div>tcp      361      0 sip_test_ip:5061         <a href="http://67.21.5.36:62188">67.21.5.36:62188</a>            CLOSE_WAIT</div><div>tcp      361      0 sip_test_ip:5061         <a href="http://67.21.5.36:28660">67.21.5.36:28660</a>            CLOSE_WAIT</div><div>tcp      361      0 sip_test_ip:5061         <a href="http://67.21.5.36:62848">67.21.5.36:62848</a>            CLOSE_WAIT</div><div>tcp      361      0 sip_test_ip:5061         <a href="http://67.21.5.36:16914">67.21.5.36:16914</a>            CLOSE_WAIT</div><div>tcp      361      0 sip_test_ip:5061         <a href="http://67.21.5.36:37157">67.21.5.36:37157</a>            CLOSE_WAIT</div><div>tcp      361      0 sip_test_ip:5061         <a href="http://67.21.5.36:27378">67.21.5.36:27378</a>            CLOSE_WAIT</div></div><div>-------------------------------</div><div><br></div><div><br></div><div>I think something happened with the first TCP connection because it had &quot;strange&quot; State = 18446744073709551615</div><div>So what is &quot;State&quot; mean?</div><div><br></div><div>--</div><div class="gmail_signature">NguyenVD</div>
</div></div>