{"action":"closed","issue":{"url":"https://api.github.com/repos/Azure/azure-event-hubs-node/issues/24","repository_url":"https://api.github.com/repos/Azure/azure-event-hubs-node","labels_url":"https://api.github.com/repos/Azure/azure-event-hubs-node/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-event-hubs-node/issues/24/comments","events_url":"https://api.github.com/repos/Azure/azure-event-hubs-node/issues/24/events","html_url":"https://github.com/Azure/azure-event-hubs-node/issues/24","id":224053085,"number":24,"title":"Allow for policy changes from constructor","user":{"login":"Weeknie","id":158671,"avatar_url":"https://avatars1.githubusercontent.com/u/158671?v=4","gravatar_id":"","url":"https://api.github.com/users/Weeknie","html_url":"https://github.com/Weeknie","followers_url":"https://api.github.com/users/Weeknie/followers","following_url":"https://api.github.com/users/Weeknie/following{/other_user}","gists_url":"https://api.github.com/users/Weeknie/gists{/gist_id}","starred_url":"https://api.github.com/users/Weeknie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Weeknie/subscriptions","organizations_url":"https://api.github.com/users/Weeknie/orgs","repos_url":"https://api.github.com/users/Weeknie/repos","events_url":"https://api.github.com/users/Weeknie/events{/privacy}","received_events_url":"https://api.github.com/users/Weeknie/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-04-25T07:58:48Z","updated_at":"2018-04-24T18:40:59Z","closed_at":"2018-04-24T18:40:59Z","author_association":"NONE","body":"We're using this library to send our logging from Azure Functions to the Event Hub. These functions are supposed to finish within seconds; they're part of a microservice architecture.\r\n\r\nCurrently, this library will attempt to reconnect forever when it is unable to establish a connection. The code has been set up that this is a non-blocking issue, however it would keep the node process alive in the background indefinitely (or at least until the connection is reestablished). We would prefer to just connect a couple of times and then disable Event Hub logging.\r\n\r\nWith the current library, I believe it's impossible to change the policy used to connect to Event Hub. Could you provide the constructor with an extra argument for allowing policy changes?"}}
{"actor":{"display_login":"amarzavery"}}