{"action":"created","issue":{"url":"https://api.github.com/repos/OpenSIPS/opensips/issues/714","repository_url":"https://api.github.com/repos/OpenSIPS/opensips","labels_url":"https://api.github.com/repos/OpenSIPS/opensips/issues/714/labels{/name}","comments_url":"https://api.github.com/repos/OpenSIPS/opensips/issues/714/comments","events_url":"https://api.github.com/repos/OpenSIPS/opensips/issues/714/events","html_url":"https://github.com/OpenSIPS/opensips/issues/714","id":120112943,"number":714,"title":"opensips allways release TCP connection after tcp_max_msg_time number of seconds","user":{"login":"achalkov","id":5903461,"avatar_url":"https://avatars.githubusercontent.com/u/5903461?v=3","gravatar_id":"","url":"https://api.github.com/users/achalkov","html_url":"https://github.com/achalkov","followers_url":"https://api.github.com/users/achalkov/followers","following_url":"https://api.github.com/users/achalkov/following{/other_user}","gists_url":"https://api.github.com/users/achalkov/gists{/gist_id}","starred_url":"https://api.github.com/users/achalkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/achalkov/subscriptions","organizations_url":"https://api.github.com/users/achalkov/orgs","repos_url":"https://api.github.com/users/achalkov/repos","events_url":"https://api.github.com/users/achalkov/events{/privacy}","received_events_url":"https://api.github.com/users/achalkov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"bogdan-iancu","id":3973594,"avatar_url":"https://avatars.githubusercontent.com/u/3973594?v=3","gravatar_id":"","url":"https://api.github.com/users/bogdan-iancu","html_url":"https://github.com/bogdan-iancu","followers_url":"https://api.github.com/users/bogdan-iancu/followers","following_url":"https://api.github.com/users/bogdan-iancu/following{/other_user}","gists_url":"https://api.github.com/users/bogdan-iancu/gists{/gist_id}","starred_url":"https://api.github.com/users/bogdan-iancu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bogdan-iancu/subscriptions","organizations_url":"https://api.github.com/users/bogdan-iancu/orgs","repos_url":"https://api.github.com/users/bogdan-iancu/repos","events_url":"https://api.github.com/users/bogdan-iancu/events{/privacy}","received_events_url":"https://api.github.com/users/bogdan-iancu/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/OpenSIPS/opensips/milestones/8","html_url":"https://github.com/OpenSIPS/opensips/milestones/2.1.2","labels_url":"https://api.github.com/repos/OpenSIPS/opensips/milestones/8/labels","id":648967,"number":8,"title":"2.1.2","description":"","creator":{"login":"razvancrainea","id":1511224,"avatar_url":"https://avatars.githubusercontent.com/u/1511224?v=3","gravatar_id":"","url":"https://api.github.com/users/razvancrainea","html_url":"https://github.com/razvancrainea","followers_url":"https://api.github.com/users/razvancrainea/followers","following_url":"https://api.github.com/users/razvancrainea/following{/other_user}","gists_url":"https://api.github.com/users/razvancrainea/gists{/gist_id}","starred_url":"https://api.github.com/users/razvancrainea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/razvancrainea/subscriptions","organizations_url":"https://api.github.com/users/razvancrainea/orgs","repos_url":"https://api.github.com/users/razvancrainea/repos","events_url":"https://api.github.com/users/razvancrainea/events{/privacy}","received_events_url":"https://api.github.com/users/razvancrainea/received_events","type":"User","site_admin":false},"open_issues":14,"closed_issues":81,"state":"open","created_at":"2014-05-05T10:03:22Z","updated_at":"2016-05-25T07:06:14Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-12-03T07:52:36Z","updated_at":"2016-05-26T20:02:51Z","closed_at":null,"body":"```\r\nversion: opensips 2.1.1 (x86_64/linux)\r\nflags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, F_MALLOC, FAST_LOCK-ADAPTIVE_WAIT\r\nADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535\r\npoll method support: poll, epoll_lt, epoll_et, sigio_rt, select.\r\ngit revision: 21b2728\r\nmain.c compiled on 02:46:31 Nov 24 2015 with gcc 4.4.7\r\n```\r\n```\r\nGlobal parameters:\r\ntcp_listen_backlog=1024\r\ntcp_accept_aliases=yes\r\ntcp_connect_timeout=5000\r\ntcp_max_msg_time=4\r\ntcp_connection_lifetime=3600\r\ntcp_max_connections=65535\r\ntcp_keepalive = 1\r\ntcp_keepcount = 5\r\ntcp_keepidle = 30\r\ntcp_keepinterval = 10\r\n```\r\n\r\nI trying to register via TCP from many instances and all time opensips release connection after tcp_max_msg_time  number of seconds.\r\nThere is a log with debug=4:\r\n```\r\nDec  3 11:35:31 opensips-dev-2-1 /usr/sbin/opensips[38485]: DBG:core:tcp_read_req: Using the global ( per process ) buff\r\nDec  3 11:35:31 opensips-dev-2-1 /usr/sbin/opensips[38485]: DBG:core:tcp_handle_req: content-length= 0\r\nDec  3 11:35:31 opensips-dev-2-1 /usr/sbin/opensips[38485]: DBG:core:tcp_handle_req: Nothing more to read on TCP conn 0x7fc8785160f8, currently in state 0\r\nDec  3 11:35:31 opensips-dev-2-1 /usr/sbin/opensips[38485]: DBG:core:tcp_conn_get: con found in state 0\r\nDec  3 11:35:31 opensips-dev-2-1 /usr/sbin/opensips[38485]: DBG:core:tcp_conn_get: tcp connection found (0x7fc8785160f8) already in this process ( 37 ) , fd = 59\r\nDec  3 11:35:31 opensips-dev-2-1 /usr/sbin/opensips[38485]: DBG:core:tcp_read_req: tcp_read_req end\r\nDec  3 11:35:31 opensips-dev-2-1 /usr/sbin/opensips[38485]: DBG:core:tcp_read_req: Using the global ( per process ) buff\r\nDec  3 11:35:31 opensips-dev-2-1 /usr/sbin/opensips[38485]: DBG:core:tcp_handle_req: We didn't manage to read a full request\r\nDec  3 11:35:31 opensips-dev-2-1 /usr/sbin/opensips[38485]: DBG:core:tcp_read_req: tcp_read_req end\r\nDec  3 11:35:31 opensips-dev-2-1 /usr/sbin/opensips[38485]: DBG:core:tcp_read_req: Using the per connection buff\r\nDec  3 11:35:31 opensips-dev-2-1 /usr/sbin/opensips[38485]: DBG:core:tcp_handle_req: content-length= 0\r\nDec  3 11:35:31 opensips-dev-2-1 /usr/sbin/opensips[38485]: DBG:core:tcp_handle_req: Nothing more to read on TCP conn 0x7fc8785160f8, currently in state 0\r\nDec  3 11:35:32 opensips-dev-2-1 /usr/sbin/opensips[38485]: DBG:core:tcp_conn_get: con found in state 0\r\nDec  3 11:35:32 opensips-dev-2-1 /usr/sbin/opensips[38485]: DBG:core:tcp_conn_get: tcp connection found (0x7fc8785160f8) already in this process ( 37 ) , fd = 59\r\nDec  3 11:35:32 opensips-dev-2-1 /usr/sbin/opensips[38485]: DBG:core:tcp_read_req: tcp_read_req end\r\nDec  3 11:35:32 opensips-dev-2-1 /usr/sbin/opensips[38485]: DBG:core:tcp_read_req: Using the global ( per process ) buff\r\nDec  3 11:35:32 opensips-dev-2-1 /usr/sbin/opensips[38485]: DBG:core:tcp_handle_req: We didn't manage to read a full request\r\nDec  3 11:35:32 opensips-dev-2-1 /usr/sbin/opensips[38485]: DBG:core:tcp_read_req: tcp_read_req end\r\nDec  3 11:35:35 opensips-dev-2-1 /usr/sbin/opensips[38485]: DBG:core:tcp_receive_timeout: 0x7fc8785160f8 expired - (22, 22) lt=3618\r\nDec  3 11:35:35 opensips-dev-2-1 /usr/sbin/opensips[38485]: DBG:core:tcpconn_release:  releasing con 0x7fc8785160f8, state -2, fd=-1, id=1\r\nDec  3 11:35:35 opensips-dev-2-1 /usr/sbin/opensips[38485]: DBG:core:tcpconn_release:  extra_data (nil)\r\nDec  3 11:36:06 opensips-dev-2-1 /usr/sbin/opensips[38485]: DBG:core:tcp_read_req: Using the global ( per process ) buff\r\nDec  3 11:36:06 opensips-dev-2-1 /usr/sbin/opensips[38485]: DBG:core:tcp_handle_req: We didn't manage to read a full request\r\nDec  3 11:36:06 opensips-dev-2-1 /usr/sbin/opensips[38485]: DBG:core:tcp_read_req: tcp_read_req end\r\nDec  3 11:36:06 opensips-dev-2-1 /usr/sbin/opensips[38485]: DBG:core:tcp_read_req: Using the per connection buff\r\nDec  3 11:36:06 opensips-dev-2-1 /usr/sbin/opensips[38485]: DBG:core:tcp_read_req: tcp_read_req end\r\nDec  3 11:36:10 opensips-dev-2-1 /usr/sbin/opensips[38485]: DBG:core:tcp_receive_timeout: 0x7fc87854ddc8 expired - (56, 56) lt=3652\r\nDec  3 11:36:10 opensips-dev-2-1 /usr/sbin/opensips[38485]: DBG:core:tcpconn_release:  releasing con 0x7fc87854ddc8, state -2, fd=-1, id=2\r\nDec  3 11:36:10 opensips-dev-2-1 /usr/sbin/opensips[38485]: DBG:core:tcpconn_release:  extra_data (nil)\r\n```\r\n\r\nI tried to send requests via TCP from many instances with diferent IP, and all time opensips receives requests and handle it successfully, but still drop connection after 4 seconds. \r\n\r\nIs that correct behavior or some sort of error?\r\n"},"comment":{"url":"https://api.github.com/repos/OpenSIPS/opensips/issues/comments/221978640","html_url":"https://github.com/OpenSIPS/opensips/issues/714#issuecomment-221978640","issue_url":"https://api.github.com/repos/OpenSIPS/opensips/issues/714","id":221978640,"user":{"login":"bogdan-iancu","id":3973594,"avatar_url":"https://avatars.githubusercontent.com/u/3973594?v=3","gravatar_id":"","url":"https://api.github.com/users/bogdan-iancu","html_url":"https://github.com/bogdan-iancu","followers_url":"https://api.github.com/users/bogdan-iancu/followers","following_url":"https://api.github.com/users/bogdan-iancu/following{/other_user}","gists_url":"https://api.github.com/users/bogdan-iancu/gists{/gist_id}","starred_url":"https://api.github.com/users/bogdan-iancu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bogdan-iancu/subscriptions","organizations_url":"https://api.github.com/users/bogdan-iancu/orgs","repos_url":"https://api.github.com/users/bogdan-iancu/repos","events_url":"https://api.github.com/users/bogdan-iancu/events{/privacy}","received_events_url":"https://api.github.com/users/bogdan-iancu/received_events","type":"User","site_admin":false},"created_at":"2016-05-26T20:02:51Z","updated_at":"2016-05-26T20:02:51Z","body":"@achalkov, do you have any update on this ? Is the issue still valid ?"}}
{"actor":{"display_login":"bogdan-iancu"}}