{"action":"opened","issue":{"url":"https://api.github.com/repos/alexcesaro/statsd/issues/6","repository_url":"https://api.github.com/repos/alexcesaro/statsd","labels_url":"https://api.github.com/repos/alexcesaro/statsd/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/alexcesaro/statsd/issues/6/comments","events_url":"https://api.github.com/repos/alexcesaro/statsd/issues/6/events","html_url":"https://github.com/alexcesaro/statsd/issues/6","id":158368258,"number":6,"title":"Try to connect(un-mute) on flush() or from time to time","user":{"login":"zstyblik","id":6183869,"avatar_url":"https://avatars.githubusercontent.com/u/6183869?v=3","gravatar_id":"","url":"https://api.github.com/users/zstyblik","html_url":"https://github.com/zstyblik","followers_url":"https://api.github.com/users/zstyblik/followers","following_url":"https://api.github.com/users/zstyblik/following{/other_user}","gists_url":"https://api.github.com/users/zstyblik/gists{/gist_id}","starred_url":"https://api.github.com/users/zstyblik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zstyblik/subscriptions","organizations_url":"https://api.github.com/users/zstyblik/orgs","repos_url":"https://api.github.com/users/zstyblik/repos","events_url":"https://api.github.com/users/zstyblik/events{/privacy}","received_events_url":"https://api.github.com/users/zstyblik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-03T13:33:39Z","updated_at":"2016-06-03T13:33:39Z","closed_at":null,"body":"Hello,\r\n\r\nI'm wondering whether it would be possible to try to either connect(un-mute) or from time to time.\r\n\r\nCurrently, when:\r\n\r\n```\r\nFailed to init StatsD: write udp [::1]:51628->[::1]:8125: write: connection refusedSlept: 0\r\n```\r\n\r\nThen no attempt is made to connect again. I don't want to fail application just because connection cannot be established, although may be I should. Also, it seems to me a bit cumbersome to introduce some check-whether-StatsD-is-initialized logic.\r\n\r\nWould it be possible to try to connect from time to time eg. on flush() or just from time to time and un-mute?\r\n\r\nIf I kill listener, then connection is re-established once listener comes back. However, if listener isn't there when StatsD client is initialized, we never try again.\r\n\r\nThanks,\r\nZ."}}
{"actor":{"display_login":"zstyblik"}}