{"action":"created","issue":{"url":"https://api.github.com/repos/aws/aws-sdk-go/issues/890","repository_url":"https://api.github.com/repos/aws/aws-sdk-go","labels_url":"https://api.github.com/repos/aws/aws-sdk-go/issues/890/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-sdk-go/issues/890/comments","events_url":"https://api.github.com/repos/aws/aws-sdk-go/issues/890/events","html_url":"https://github.com/aws/aws-sdk-go/issues/890","id":182745731,"number":890,"title":"aws sns  keep alive issue","user":{"login":"nonexu","id":16432547,"avatar_url":"https://avatars.githubusercontent.com/u/16432547?v=3","gravatar_id":"","url":"https://api.github.com/users/nonexu","html_url":"https://github.com/nonexu","followers_url":"https://api.github.com/users/nonexu/followers","following_url":"https://api.github.com/users/nonexu/following{/other_user}","gists_url":"https://api.github.com/users/nonexu/gists{/gist_id}","starred_url":"https://api.github.com/users/nonexu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nonexu/subscriptions","organizations_url":"https://api.github.com/users/nonexu/orgs","repos_url":"https://api.github.com/users/nonexu/repos","events_url":"https://api.github.com/users/nonexu/events{/privacy}","received_events_url":"https://api.github.com/users/nonexu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-13T09:56:31Z","updated_at":"2016-10-13T19:34:43Z","closed_at":null,"body":"Hi, expert \r\n\r\n  I encounter a issue when I send push message via aws sns api.\r\n  I found that new tcp connection was established when api called.\r\n  So there is so many tcp connection when I send a lot of push message, and tcp connection is only used once before released.\r\n  So there is so many connection is TIMEWAIT state.\r\n  How to solve this issue to reuse tcp connection via keep alive method.\r\n\r\nThank you in advance!\r\n\r\n  0 10.0.3.8:54893          54.240.255.63:443       TIME_WAIT\r\n\"github.com/aws/aws-sdk-go/aws/request\"\r\nTag release v1.1.35"},"comment":{"url":"https://api.github.com/repos/aws/aws-sdk-go/issues/comments/253615373","html_url":"https://github.com/aws/aws-sdk-go/issues/890#issuecomment-253615373","issue_url":"https://api.github.com/repos/aws/aws-sdk-go/issues/890","id":253615373,"user":{"login":"jasdel","id":961963,"avatar_url":"https://avatars.githubusercontent.com/u/961963?v=3","gravatar_id":"","url":"https://api.github.com/users/jasdel","html_url":"https://github.com/jasdel","followers_url":"https://api.github.com/users/jasdel/followers","following_url":"https://api.github.com/users/jasdel/following{/other_user}","gists_url":"https://api.github.com/users/jasdel/gists{/gist_id}","starred_url":"https://api.github.com/users/jasdel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasdel/subscriptions","organizations_url":"https://api.github.com/users/jasdel/orgs","repos_url":"https://api.github.com/users/jasdel/repos","events_url":"https://api.github.com/users/jasdel/events{/privacy}","received_events_url":"https://api.github.com/users/jasdel/received_events","type":"User","site_admin":false},"created_at":"2016-10-13T19:34:43Z","updated_at":"2016-10-13T19:34:43Z","body":"@nonexu thanks for getting in contact with us. What version of Go are you using. There is a known issue with Go 1.7 where the logic for reaping keep alive connections could be overly agressive. If you bump up the [`Transports` `MaxIdleConnsPerHost`](https://github.com/aws/aws-sdk-go/issues/829#issuecomment-246754464).\r\n\r\n```go\r\nsess := session.New()\r\n\r\nsvc := sns.New(sess, &aws.Config{HTTPClient: &http.Client{\r\n\tTransport: &http.Transport{\r\n\t\tProxy: http.ProxyFromEnvironment,\r\n\t\tDialContext: (&net.Dialer{\r\n\t\t\tTimeout:   30 * time.Second,\r\n\t\t\tKeepAlive: 30 * time.Second,\r\n\t\t}).DialContext,\r\n\t\tMaxIdleConns:          100,\r\n\t\tIdleConnTimeout:       90 * time.Second,\r\n\r\n\t\t// Only difference between default transport and this example.\r\n\t\tMaxIdleConnsPerHost:   100,\r\n\r\n\t\tTLSHandshakeTimeout:   3 * time.Second,\r\n\t\tExpectContinueTimeout: 1 * time.Second,\r\n\t},\r\n}})\r\n```\r\n"}}
{"actor":{"display_login":"jasdel"}}