{"action":"closed","number":42,"pull_request":{"url":"https://api.github.com/repos/skrusty/AsterNET.ARI/pulls/42","id":131067203,"node_id":"MDExOlB1bGxSZXF1ZXN0MTMxMDY3MjAz","html_url":"https://github.com/skrusty/AsterNET.ARI/pull/42","diff_url":"https://github.com/skrusty/AsterNET.ARI/pull/42.diff","patch_url":"https://github.com/skrusty/AsterNET.ARI/pull/42.patch","issue_url":"https://api.github.com/repos/skrusty/AsterNET.ARI/issues/42","number":42,"state":"closed","locked":false,"title":"Change to manually dispose of RestClients after each synchronous call","user":{"login":"sebmurrayqi","id":21217874,"node_id":"MDQ6VXNlcjIxMjE3ODc0","avatar_url":"https://avatars3.githubusercontent.com/u/21217874?v=4","gravatar_id":"","url":"https://api.github.com/users/sebmurrayqi","html_url":"https://github.com/sebmurrayqi","followers_url":"https://api.github.com/users/sebmurrayqi/followers","following_url":"https://api.github.com/users/sebmurrayqi/following{/other_user}","gists_url":"https://api.github.com/users/sebmurrayqi/gists{/gist_id}","starred_url":"https://api.github.com/users/sebmurrayqi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebmurrayqi/subscriptions","organizations_url":"https://api.github.com/users/sebmurrayqi/orgs","repos_url":"https://api.github.com/users/sebmurrayqi/repos","events_url":"https://api.github.com/users/sebmurrayqi/events{/privacy}","received_events_url":"https://api.github.com/users/sebmurrayqi/received_events","type":"User","site_admin":false},"body":"I have discovered that under fairly high load using AsterNET.ARI Asterisk eventually stops accepting requests and complains about maximum of 100 HTTP sessions being active. On closer inspection, it seems that the RestClient is not being disposed correctly or in time - rather eventually Asterisk will terminate the HTTP session causing it to shut down. This does however cause problems when under high load. This change simply ensures that the RestClient is correctly disposed after each request, thus preventing the build up of active HTTP sessions to the Asterisk server unnecessarily","created_at":"2017-07-18T11:48:46Z","updated_at":"2018-09-21T21:32:12Z","closed_at":"2018-09-21T21:32:12Z","merged_at":"2018-09-21T21:32:12Z","merge_commit_sha":"ba10348fd7355514b3e0cb99e9074a06beb51077","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/skrusty/AsterNET.ARI/pulls/42/commits","review_comments_url":"https://api.github.com/repos/skrusty/AsterNET.ARI/pulls/42/comments","review_comment_url":"https://api.github.com/repos/skrusty/AsterNET.ARI/pulls/comments{/number}","comments_url":"https://api.github.com/repos/skrusty/AsterNET.ARI/issues/42/comments","statuses_url":"https://api.github.com/repos/skrusty/AsterNET.ARI/statuses/3451b0bd68c5487432781523f0396fc29e2b5c05","head":{"label":"sebmurrayqi:master","ref":"master","sha":"3451b0bd68c5487432781523f0396fc29e2b5c05","user":{"login":"sebmurrayqi","id":21217874,"node_id":"MDQ6VXNlcjIxMjE3ODc0","avatar_url":"https://avatars3.githubusercontent.com/u/21217874?v=4","gravatar_id":"","url":"https://api.github.com/users/sebmurrayqi","html_url":"https://github.com/sebmurrayqi","followers_url":"https://api.github.com/users/sebmurrayqi/followers","following_url":"https://api.github.com/users/sebmurrayqi/following{/other_user}","gists_url":"https://api.github.com/users/sebmurrayqi/gists{/gist_id}","starred_url":"https://api.github.com/users/sebmurrayqi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebmurrayqi/subscriptions","organizations_url":"https://api.github.com/users/sebmurrayqi/orgs","repos_url":"https://api.github.com/users/sebmurrayqi/repos","events_url":"https://api.github.com/users/sebmurrayqi/events{/privacy}","received_events_url":"https://api.github.com/users/sebmurrayqi/received_events","type":"User","site_admin":false},"repo":{"id":97590359,"node_id":"MDEwOlJlcG9zaXRvcnk5NzU5MDM1OQ==","name":"AsterNET.ARI","full_name":"sebmurrayqi/AsterNET.ARI","private":false,"owner":{"login":"sebmurrayqi","id":21217874,"node_id":"MDQ6VXNlcjIxMjE3ODc0","avatar_url":"https://avatars3.githubusercontent.com/u/21217874?v=4","gravatar_id":"","url":"https://api.github.com/users/sebmurrayqi","html_url":"https://github.com/sebmurrayqi","followers_url":"https://api.github.com/users/sebmurrayqi/followers","following_url":"https://api.github.com/users/sebmurrayqi/following{/other_user}","gists_url":"https://api.github.com/users/sebmurrayqi/gists{/gist_id}","starred_url":"https://api.github.com/users/sebmurrayqi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebmurrayqi/subscriptions","organizations_url":"https://api.github.com/users/sebmurrayqi/orgs","repos_url":"https://api.github.com/users/sebmurrayqi/repos","events_url":"https://api.github.com/users/sebmurrayqi/events{/privacy}","received_events_url":"https://api.github.com/users/sebmurrayqi/received_events","type":"User","site_admin":false},"html_url":"https://github.com/sebmurrayqi/AsterNET.ARI","description":"AsterNET.ARI is an incubation project and addition to the AsterNET framework for .NET. It allows you to develop against Stasis ARI for Asterisk using the .NET framework.","fork":true,"url":"https://api.github.com/repos/sebmurrayqi/AsterNET.ARI","forks_url":"https://api.github.com/repos/sebmurrayqi/AsterNET.ARI/forks","keys_url":"https://api.github.com/repos/sebmurrayqi/AsterNET.ARI/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sebmurrayqi/AsterNET.ARI/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sebmurrayqi/AsterNET.ARI/teams","hooks_url":"https://api.github.com/repos/sebmurrayqi/AsterNET.ARI/hooks","issue_events_url":"https://api.github.com/repos/sebmurrayqi/AsterNET.ARI/issues/events{/number}","events_url":"https://api.github.com/repos/sebmurrayqi/AsterNET.ARI/events","assignees_url":"https://api.github.com/repos/sebmurrayqi/AsterNET.ARI/assignees{/user}","branches_url":"https://api.github.com/repos/sebmurrayqi/AsterNET.ARI/branches{/branch}","tags_url":"https://api.github.com/repos/sebmurrayqi/AsterNET.ARI/tags","blobs_url":"https://api.github.com/repos/sebmurrayqi/AsterNET.ARI/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sebmurrayqi/AsterNET.ARI/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sebmurrayqi/AsterNET.ARI/git/refs{/sha}","trees_url":"https://api.github.com/repos/sebmurrayqi/AsterNET.ARI/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sebmurrayqi/AsterNET.ARI/statuses/{sha}","languages_url":"https://api.github.com/repos/sebmurrayqi/AsterNET.ARI/languages","stargazers_url":"https://api.github.com/repos/sebmurrayqi/AsterNET.ARI/stargazers","contributors_url":"https://api.github.com/repos/sebmurrayqi/AsterNET.ARI/contributors","subscribers_url":"https://api.github.com/repos/sebmurrayqi/AsterNET.ARI/subscribers","subscription_url":"https://api.github.com/repos/sebmurrayqi/AsterNET.ARI/subscription","commits_url":"https://api.github.com/repos/sebmurrayqi/AsterNET.ARI/commits{/sha}","git_commits_url":"https://api.github.com/repos/sebmurrayqi/AsterNET.ARI/git/commits{/sha}","comments_url":"https://api.github.com/repos/sebmurrayqi/AsterNET.ARI/comments{/number}","issue_comment_url":"https://api.github.com/repos/sebmurrayqi/AsterNET.ARI/issues/comments{/number}","contents_url":"https://api.github.com/repos/sebmurrayqi/AsterNET.ARI/contents/{+path}","compare_url":"https://api.github.com/repos/sebmurrayqi/AsterNET.ARI/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sebmurrayqi/AsterNET.ARI/merges","archive_url":"https://api.github.com/repos/sebmurrayqi/AsterNET.ARI/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sebmurrayqi/AsterNET.ARI/downloads","issues_url":"https://api.github.com/repos/sebmurrayqi/AsterNET.ARI/issues{/number}","pulls_url":"https://api.github.com/repos/sebmurrayqi/AsterNET.ARI/pulls{/number}","milestones_url":"https://api.github.com/repos/sebmurrayqi/AsterNET.ARI/milestones{/number}","notifications_url":"https://api.github.com/repos/sebmurrayqi/AsterNET.ARI/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sebmurrayqi/AsterNET.ARI/labels{/name}","releases_url":"https://api.github.com/repos/sebmurrayqi/AsterNET.ARI/releases{/id}","deployments_url":"https://api.github.com/repos/sebmurrayqi/AsterNET.ARI/deployments","created_at":"2017-07-18T11:29:32Z","updated_at":"2017-07-18T11:29:34Z","pushed_at":"2017-07-18T11:42:52Z","git_url":"git://github.com/sebmurrayqi/AsterNET.ARI.git","ssh_url":"git@github.com:sebmurrayqi/AsterNET.ARI.git","clone_url":"https://github.com/sebmurrayqi/AsterNET.ARI.git","svn_url":"https://github.com/sebmurrayqi/AsterNET.ARI","homepage":"http://www.xdev.net/projects/asternet-ari/","size":4420,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"skrusty:master","ref":"master","sha":"883e5e8ae563dd7d2768a2ec68fe7b4d8041b5ea","user":{"login":"skrusty","id":8448201,"node_id":"MDQ6VXNlcjg0NDgyMDE=","avatar_url":"https://avatars0.githubusercontent.com/u/8448201?v=4","gravatar_id":"","url":"https://api.github.com/users/skrusty","html_url":"https://github.com/skrusty","followers_url":"https://api.github.com/users/skrusty/followers","following_url":"https://api.github.com/users/skrusty/following{/other_user}","gists_url":"https://api.github.com/users/skrusty/gists{/gist_id}","starred_url":"https://api.github.com/users/skrusty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skrusty/subscriptions","organizations_url":"https://api.github.com/users/skrusty/orgs","repos_url":"https://api.github.com/users/skrusty/repos","events_url":"https://api.github.com/users/skrusty/events{/privacy}","received_events_url":"https://api.github.com/users/skrusty/received_events","type":"User","site_admin":false},"repo":{"id":27031278,"node_id":"MDEwOlJlcG9zaXRvcnkyNzAzMTI3OA==","name":"AsterNET.ARI","full_name":"skrusty/AsterNET.ARI","private":false,"owner":{"login":"skrusty","id":8448201,"node_id":"MDQ6VXNlcjg0NDgyMDE=","avatar_url":"https://avatars0.githubusercontent.com/u/8448201?v=4","gravatar_id":"","url":"https://api.github.com/users/skrusty","html_url":"https://github.com/skrusty","followers_url":"https://api.github.com/users/skrusty/followers","following_url":"https://api.github.com/users/skrusty/following{/other_user}","gists_url":"https://api.github.com/users/skrusty/gists{/gist_id}","starred_url":"https://api.github.com/users/skrusty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skrusty/subscriptions","organizations_url":"https://api.github.com/users/skrusty/orgs","repos_url":"https://api.github.com/users/skrusty/repos","events_url":"https://api.github.com/users/skrusty/events{/privacy}","received_events_url":"https://api.github.com/users/skrusty/received_events","type":"User","site_admin":false},"html_url":"https://github.com/skrusty/AsterNET.ARI","description":"AsterNET.ARI is an incubation project and addition to the AsterNET framework for .NET. It allows you to develop against Stasis ARI for Asterisk using the .NET framework.","fork":false,"url":"https://api.github.com/repos/skrusty/AsterNET.ARI","forks_url":"https://api.github.com/repos/skrusty/AsterNET.ARI/forks","keys_url":"https://api.github.com/repos/skrusty/AsterNET.ARI/keys{/key_id}","collaborators_url":"https://api.github.com/repos/skrusty/AsterNET.ARI/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/skrusty/AsterNET.ARI/teams","hooks_url":"https://api.github.com/repos/skrusty/AsterNET.ARI/hooks","issue_events_url":"https://api.github.com/repos/skrusty/AsterNET.ARI/issues/events{/number}","events_url":"https://api.github.com/repos/skrusty/AsterNET.ARI/events","assignees_url":"https://api.github.com/repos/skrusty/AsterNET.ARI/assignees{/user}","branches_url":"https://api.github.com/repos/skrusty/AsterNET.ARI/branches{/branch}","tags_url":"https://api.github.com/repos/skrusty/AsterNET.ARI/tags","blobs_url":"https://api.github.com/repos/skrusty/AsterNET.ARI/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/skrusty/AsterNET.ARI/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/skrusty/AsterNET.ARI/git/refs{/sha}","trees_url":"https://api.github.com/repos/skrusty/AsterNET.ARI/git/trees{/sha}","statuses_url":"https://api.github.com/repos/skrusty/AsterNET.ARI/statuses/{sha}","languages_url":"https://api.github.com/repos/skrusty/AsterNET.ARI/languages","stargazers_url":"https://api.github.com/repos/skrusty/AsterNET.ARI/stargazers","contributors_url":"https://api.github.com/repos/skrusty/AsterNET.ARI/contributors","subscribers_url":"https://api.github.com/repos/skrusty/AsterNET.ARI/subscribers","subscription_url":"https://api.github.com/repos/skrusty/AsterNET.ARI/subscription","commits_url":"https://api.github.com/repos/skrusty/AsterNET.ARI/commits{/sha}","git_commits_url":"https://api.github.com/repos/skrusty/AsterNET.ARI/git/commits{/sha}","comments_url":"https://api.github.com/repos/skrusty/AsterNET.ARI/comments{/number}","issue_comment_url":"https://api.github.com/repos/skrusty/AsterNET.ARI/issues/comments{/number}","contents_url":"https://api.github.com/repos/skrusty/AsterNET.ARI/contents/{+path}","compare_url":"https://api.github.com/repos/skrusty/AsterNET.ARI/compare/{base}...{head}","merges_url":"https://api.github.com/repos/skrusty/AsterNET.ARI/merges","archive_url":"https://api.github.com/repos/skrusty/AsterNET.ARI/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/skrusty/AsterNET.ARI/downloads","issues_url":"https://api.github.com/repos/skrusty/AsterNET.ARI/issues{/number}","pulls_url":"https://api.github.com/repos/skrusty/AsterNET.ARI/pulls{/number}","milestones_url":"https://api.github.com/repos/skrusty/AsterNET.ARI/milestones{/number}","notifications_url":"https://api.github.com/repos/skrusty/AsterNET.ARI/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/skrusty/AsterNET.ARI/labels{/name}","releases_url":"https://api.github.com/repos/skrusty/AsterNET.ARI/releases{/id}","deployments_url":"https://api.github.com/repos/skrusty/AsterNET.ARI/deployments","created_at":"2014-11-23T12:12:17Z","updated_at":"2018-09-21T21:31:04Z","pushed_at":"2018-09-21T21:32:12Z","git_url":"git://github.com/skrusty/AsterNET.ARI.git","ssh_url":"git@github.com:skrusty/AsterNET.ARI.git","clone_url":"https://github.com/skrusty/AsterNET.ARI.git","svn_url":"https://github.com/skrusty/AsterNET.ARI","homepage":"http://www.xdev.net/projects/asternet-ari/","size":4431,"stargazers_count":39,"watchers_count":39,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":30,"mirror_url":null,"archived":false,"open_issues_count":8,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":30,"open_issues":8,"watchers":39,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/skrusty/AsterNET.ARI/pulls/42"},"html":{"href":"https://github.com/skrusty/AsterNET.ARI/pull/42"},"issue":{"href":"https://api.github.com/repos/skrusty/AsterNET.ARI/issues/42"},"comments":{"href":"https://api.github.com/repos/skrusty/AsterNET.ARI/issues/42/comments"},"review_comments":{"href":"https://api.github.com/repos/skrusty/AsterNET.ARI/pulls/42/comments"},"review_comment":{"href":"https://api.github.com/repos/skrusty/AsterNET.ARI/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/skrusty/AsterNET.ARI/pulls/42/commits"},"statuses":{"href":"https://api.github.com/repos/skrusty/AsterNET.ARI/statuses/3451b0bd68c5487432781523f0396fc29e2b5c05"}},"author_association":"NONE","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"skrusty","id":8448201,"node_id":"MDQ6VXNlcjg0NDgyMDE=","avatar_url":"https://avatars0.githubusercontent.com/u/8448201?v=4","gravatar_id":"","url":"https://api.github.com/users/skrusty","html_url":"https://github.com/skrusty","followers_url":"https://api.github.com/users/skrusty/followers","following_url":"https://api.github.com/users/skrusty/following{/other_user}","gists_url":"https://api.github.com/users/skrusty/gists{/gist_id}","starred_url":"https://api.github.com/users/skrusty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skrusty/subscriptions","organizations_url":"https://api.github.com/users/skrusty/orgs","repos_url":"https://api.github.com/users/skrusty/repos","events_url":"https://api.github.com/users/skrusty/events{/privacy}","received_events_url":"https://api.github.com/users/skrusty/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":10,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"skrusty"}}