{"action":"created","issue":{"url":"https://api.github.com/repos/sipcapture/captagent/issues/71","repository_url":"https://api.github.com/repos/sipcapture/captagent","labels_url":"https://api.github.com/repos/sipcapture/captagent/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/sipcapture/captagent/issues/71/comments","events_url":"https://api.github.com/repos/sipcapture/captagent/issues/71/events","html_url":"https://github.com/sipcapture/captagent/issues/71","id":160111772,"number":71,"title":"HEP TCP Socket Failure on AWS ELB","user":{"login":"johnpaullarsen","id":13583248,"avatar_url":"https://avatars.githubusercontent.com/u/13583248?v=3","gravatar_id":"","url":"https://api.github.com/users/johnpaullarsen","html_url":"https://github.com/johnpaullarsen","followers_url":"https://api.github.com/users/johnpaullarsen/followers","following_url":"https://api.github.com/users/johnpaullarsen/following{/other_user}","gists_url":"https://api.github.com/users/johnpaullarsen/gists{/gist_id}","starred_url":"https://api.github.com/users/johnpaullarsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnpaullarsen/subscriptions","organizations_url":"https://api.github.com/users/johnpaullarsen/orgs","repos_url":"https://api.github.com/users/johnpaullarsen/repos","events_url":"https://api.github.com/users/johnpaullarsen/events{/privacy}","received_events_url":"https://api.github.com/users/johnpaullarsen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-14T07:09:44Z","updated_at":"2016-06-14T07:18:50Z","closed_at":null,"body":"Hi, \r\n\r\nI think captagent has a problem with not closing HEP TCP connections cleanly...\r\n\r\nWe're hoping to use captagent to mirror SIP from an SBC running in AWS to a fraud detection application running on another AWS host. The HEP3 connection from the captagent to our application will use Elastic Load Balancer in TCP mode.\r\n\r\nWhile testing this configuration, I've noticed that if the load balancer closes the TCP connection to captagent, then captagent gets into a state where it can no longer send HEP packets, it continually gets SIGPIPE whenever it attempts to send a packet. It seems that captagent has not responded correctly to the FIN from the load balancer and believes the connection is still valid. The following is printed to the console each time it attempts to send a packet:\r\n\r\n[ERR] transport_hep.c:895 SIGPIPE... trying to reconnect...\r\n[ERR] transport_hep.c:658 HEP send error.\r\n\r\nThe load balancer has an idle timeout that causes it to close the connection if nothing is sent for 60 seconds. Unfortunately extended idle periods are likely with our application.\r\n\r\nAny guidance or help with the issue would be much appreciated. I can provide a pcap file if required\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/sipcapture/captagent/issues/comments/225799100","html_url":"https://github.com/sipcapture/captagent/issues/71#issuecomment-225799100","issue_url":"https://api.github.com/repos/sipcapture/captagent/issues/71","id":225799100,"user":{"login":"adubovikov","id":4513061,"avatar_url":"https://avatars.githubusercontent.com/u/4513061?v=3","gravatar_id":"","url":"https://api.github.com/users/adubovikov","html_url":"https://github.com/adubovikov","followers_url":"https://api.github.com/users/adubovikov/followers","following_url":"https://api.github.com/users/adubovikov/following{/other_user}","gists_url":"https://api.github.com/users/adubovikov/gists{/gist_id}","starred_url":"https://api.github.com/users/adubovikov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adubovikov/subscriptions","organizations_url":"https://api.github.com/users/adubovikov/orgs","repos_url":"https://api.github.com/users/adubovikov/repos","events_url":"https://api.github.com/users/adubovikov/events{/privacy}","received_events_url":"https://api.github.com/users/adubovikov/received_events","type":"User","site_admin":false},"created_at":"2016-06-14T07:18:50Z","updated_at":"2016-06-14T07:18:50Z","body":"you can decrease the reconnect error:\r\nhttps://github.com/sipcapture/captagent/blob/master/src/modules/transport/hep/transport_hep.c#L488"}}
{"actor":{"display_login":"adubovikov"}}