{"action":"closed","number":13,"pull_request":{"url":"https://api.github.com/repos/Anna-Rx/Anna/pulls/13","id":34912527,"html_url":"https://github.com/Anna-Rx/Anna/pull/13","diff_url":"https://github.com/Anna-Rx/Anna/pull/13.diff","patch_url":"https://github.com/Anna-Rx/Anna/pull/13.patch","issue_url":"https://api.github.com/repos/Anna-Rx/Anna/issues/13","number":13,"state":"closed","locked":false,"title":"dispose subscription handler on HttpServer disposing","user":{"login":"almostWaldo","id":11320457,"avatar_url":"https://avatars.githubusercontent.com/u/11320457?v=3","gravatar_id":"","url":"https://api.github.com/users/almostWaldo","html_url":"https://github.com/almostWaldo","followers_url":"https://api.github.com/users/almostWaldo/followers","following_url":"https://api.github.com/users/almostWaldo/following{/other_user}","gists_url":"https://api.github.com/users/almostWaldo/gists{/gist_id}","starred_url":"https://api.github.com/users/almostWaldo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/almostWaldo/subscriptions","organizations_url":"https://api.github.com/users/almostWaldo/orgs","repos_url":"https://api.github.com/users/almostWaldo/repos","events_url":"https://api.github.com/users/almostWaldo/events{/privacy}","received_events_url":"https://api.github.com/users/almostWaldo/received_events","type":"User","site_admin":false},"body":"Problem: a subscrition handler is not disposed on HttpServer object destroying. As result it leads to hang threads and process. Looks like it's work-related Rx Observable collections.\r\nThis problem was found with test:\r\n```C#\r\n[Test]\r\npublic void TestDisposing()\r\n{\r\n    for (var i = 0; i< 10000; i++)\r\n        using (var server = new HttpServer(\"http://*:1234/\"))\r\n        {\r\n        }\r\n}\r\n```\r\nThis test hangs before the fix and works fine after","created_at":"2015-05-07T12:58:10Z","updated_at":"2015-05-07T13:31:52Z","closed_at":"2015-05-07T13:31:52Z","merged_at":"2015-05-07T13:31:52Z","merge_commit_sha":"7a1030e81149931d7407cccc22dd42fe97e63c0f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Anna-Rx/Anna/pulls/13/commits","review_comments_url":"https://api.github.com/repos/Anna-Rx/Anna/pulls/13/comments","review_comment_url":"https://api.github.com/repos/Anna-Rx/Anna/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Anna-Rx/Anna/issues/13/comments","statuses_url":"https://api.github.com/repos/Anna-Rx/Anna/statuses/98248f8f1f163abf9c47196f8f05ad70a0e87043","head":{"label":"almostWaldo:master","ref":"master","sha":"98248f8f1f163abf9c47196f8f05ad70a0e87043","user":{"login":"almostWaldo","id":11320457,"avatar_url":"https://avatars.githubusercontent.com/u/11320457?v=3","gravatar_id":"","url":"https://api.github.com/users/almostWaldo","html_url":"https://github.com/almostWaldo","followers_url":"https://api.github.com/users/almostWaldo/followers","following_url":"https://api.github.com/users/almostWaldo/following{/other_user}","gists_url":"https://api.github.com/users/almostWaldo/gists{/gist_id}","starred_url":"https://api.github.com/users/almostWaldo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/almostWaldo/subscriptions","organizations_url":"https://api.github.com/users/almostWaldo/orgs","repos_url":"https://api.github.com/users/almostWaldo/repos","events_url":"https://api.github.com/users/almostWaldo/events{/privacy}","received_events_url":"https://api.github.com/users/almostWaldo/received_events","type":"User","site_admin":false},"repo":{"id":35206982,"name":"Anna","full_name":"almostWaldo/Anna","owner":{"login":"almostWaldo","id":11320457,"avatar_url":"https://avatars.githubusercontent.com/u/11320457?v=3","gravatar_id":"","url":"https://api.github.com/users/almostWaldo","html_url":"https://github.com/almostWaldo","followers_url":"https://api.github.com/users/almostWaldo/followers","following_url":"https://api.github.com/users/almostWaldo/following{/other_user}","gists_url":"https://api.github.com/users/almostWaldo/gists{/gist_id}","starred_url":"https://api.github.com/users/almostWaldo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/almostWaldo/subscriptions","organizations_url":"https://api.github.com/users/almostWaldo/orgs","repos_url":"https://api.github.com/users/almostWaldo/repos","events_url":"https://api.github.com/users/almostWaldo/events{/privacy}","received_events_url":"https://api.github.com/users/almostWaldo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/almostWaldo/Anna","description":"Event-driven http server library with ReactiveExtensions inspired in node.js and nancy","fork":true,"url":"https://api.github.com/repos/almostWaldo/Anna","forks_url":"https://api.github.com/repos/almostWaldo/Anna/forks","keys_url":"https://api.github.com/repos/almostWaldo/Anna/keys{/key_id}","collaborators_url":"https://api.github.com/repos/almostWaldo/Anna/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/almostWaldo/Anna/teams","hooks_url":"https://api.github.com/repos/almostWaldo/Anna/hooks","issue_events_url":"https://api.github.com/repos/almostWaldo/Anna/issues/events{/number}","events_url":"https://api.github.com/repos/almostWaldo/Anna/events","assignees_url":"https://api.github.com/repos/almostWaldo/Anna/assignees{/user}","branches_url":"https://api.github.com/repos/almostWaldo/Anna/branches{/branch}","tags_url":"https://api.github.com/repos/almostWaldo/Anna/tags","blobs_url":"https://api.github.com/repos/almostWaldo/Anna/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/almostWaldo/Anna/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/almostWaldo/Anna/git/refs{/sha}","trees_url":"https://api.github.com/repos/almostWaldo/Anna/git/trees{/sha}","statuses_url":"https://api.github.com/repos/almostWaldo/Anna/statuses/{sha}","languages_url":"https://api.github.com/repos/almostWaldo/Anna/languages","stargazers_url":"https://api.github.com/repos/almostWaldo/Anna/stargazers","contributors_url":"https://api.github.com/repos/almostWaldo/Anna/contributors","subscribers_url":"https://api.github.com/repos/almostWaldo/Anna/subscribers","subscription_url":"https://api.github.com/repos/almostWaldo/Anna/subscription","commits_url":"https://api.github.com/repos/almostWaldo/Anna/commits{/sha}","git_commits_url":"https://api.github.com/repos/almostWaldo/Anna/git/commits{/sha}","comments_url":"https://api.github.com/repos/almostWaldo/Anna/comments{/number}","issue_comment_url":"https://api.github.com/repos/almostWaldo/Anna/issues/comments{/number}","contents_url":"https://api.github.com/repos/almostWaldo/Anna/contents/{+path}","compare_url":"https://api.github.com/repos/almostWaldo/Anna/compare/{base}...{head}","merges_url":"https://api.github.com/repos/almostWaldo/Anna/merges","archive_url":"https://api.github.com/repos/almostWaldo/Anna/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/almostWaldo/Anna/downloads","issues_url":"https://api.github.com/repos/almostWaldo/Anna/issues{/number}","pulls_url":"https://api.github.com/repos/almostWaldo/Anna/pulls{/number}","milestones_url":"https://api.github.com/repos/almostWaldo/Anna/milestones{/number}","notifications_url":"https://api.github.com/repos/almostWaldo/Anna/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/almostWaldo/Anna/labels{/name}","releases_url":"https://api.github.com/repos/almostWaldo/Anna/releases{/id}","created_at":"2015-05-07T08:04:20Z","updated_at":"2015-05-07T11:25:11Z","pushed_at":"2015-05-07T11:25:11Z","git_url":"git://github.com/almostWaldo/Anna.git","ssh_url":"git@github.com:almostWaldo/Anna.git","clone_url":"https://github.com/almostWaldo/Anna.git","svn_url":"https://github.com/almostWaldo/Anna","homepage":"","size":627,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Anna-Rx:master","ref":"master","sha":"3e79a8b4871b2b6ff2f4b8ebf35a98ace3c28441","user":{"login":"Anna-Rx","id":10549020,"avatar_url":"https://avatars.githubusercontent.com/u/10549020?v=3","gravatar_id":"","url":"https://api.github.com/users/Anna-Rx","html_url":"https://github.com/Anna-Rx","followers_url":"https://api.github.com/users/Anna-Rx/followers","following_url":"https://api.github.com/users/Anna-Rx/following{/other_user}","gists_url":"https://api.github.com/users/Anna-Rx/gists{/gist_id}","starred_url":"https://api.github.com/users/Anna-Rx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Anna-Rx/subscriptions","organizations_url":"https://api.github.com/users/Anna-Rx/orgs","repos_url":"https://api.github.com/users/Anna-Rx/repos","events_url":"https://api.github.com/users/Anna-Rx/events{/privacy}","received_events_url":"https://api.github.com/users/Anna-Rx/received_events","type":"Organization","site_admin":false},"repo":{"id":1917564,"name":"Anna","full_name":"Anna-Rx/Anna","owner":{"login":"Anna-Rx","id":10549020,"avatar_url":"https://avatars.githubusercontent.com/u/10549020?v=3","gravatar_id":"","url":"https://api.github.com/users/Anna-Rx","html_url":"https://github.com/Anna-Rx","followers_url":"https://api.github.com/users/Anna-Rx/followers","following_url":"https://api.github.com/users/Anna-Rx/following{/other_user}","gists_url":"https://api.github.com/users/Anna-Rx/gists{/gist_id}","starred_url":"https://api.github.com/users/Anna-Rx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Anna-Rx/subscriptions","organizations_url":"https://api.github.com/users/Anna-Rx/orgs","repos_url":"https://api.github.com/users/Anna-Rx/repos","events_url":"https://api.github.com/users/Anna-Rx/events{/privacy}","received_events_url":"https://api.github.com/users/Anna-Rx/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Anna-Rx/Anna","description":"Event-driven http server library with ReactiveExtensions inspired in node.js and nancy","fork":false,"url":"https://api.github.com/repos/Anna-Rx/Anna","forks_url":"https://api.github.com/repos/Anna-Rx/Anna/forks","keys_url":"https://api.github.com/repos/Anna-Rx/Anna/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Anna-Rx/Anna/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Anna-Rx/Anna/teams","hooks_url":"https://api.github.com/repos/Anna-Rx/Anna/hooks","issue_events_url":"https://api.github.com/repos/Anna-Rx/Anna/issues/events{/number}","events_url":"https://api.github.com/repos/Anna-Rx/Anna/events","assignees_url":"https://api.github.com/repos/Anna-Rx/Anna/assignees{/user}","branches_url":"https://api.github.com/repos/Anna-Rx/Anna/branches{/branch}","tags_url":"https://api.github.com/repos/Anna-Rx/Anna/tags","blobs_url":"https://api.github.com/repos/Anna-Rx/Anna/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Anna-Rx/Anna/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Anna-Rx/Anna/git/refs{/sha}","trees_url":"https://api.github.com/repos/Anna-Rx/Anna/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Anna-Rx/Anna/statuses/{sha}","languages_url":"https://api.github.com/repos/Anna-Rx/Anna/languages","stargazers_url":"https://api.github.com/repos/Anna-Rx/Anna/stargazers","contributors_url":"https://api.github.com/repos/Anna-Rx/Anna/contributors","subscribers_url":"https://api.github.com/repos/Anna-Rx/Anna/subscribers","subscription_url":"https://api.github.com/repos/Anna-Rx/Anna/subscription","commits_url":"https://api.github.com/repos/Anna-Rx/Anna/commits{/sha}","git_commits_url":"https://api.github.com/repos/Anna-Rx/Anna/git/commits{/sha}","comments_url":"https://api.github.com/repos/Anna-Rx/Anna/comments{/number}","issue_comment_url":"https://api.github.com/repos/Anna-Rx/Anna/issues/comments{/number}","contents_url":"https://api.github.com/repos/Anna-Rx/Anna/contents/{+path}","compare_url":"https://api.github.com/repos/Anna-Rx/Anna/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Anna-Rx/Anna/merges","archive_url":"https://api.github.com/repos/Anna-Rx/Anna/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Anna-Rx/Anna/downloads","issues_url":"https://api.github.com/repos/Anna-Rx/Anna/issues{/number}","pulls_url":"https://api.github.com/repos/Anna-Rx/Anna/pulls{/number}","milestones_url":"https://api.github.com/repos/Anna-Rx/Anna/milestones{/number}","notifications_url":"https://api.github.com/repos/Anna-Rx/Anna/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Anna-Rx/Anna/labels{/name}","releases_url":"https://api.github.com/repos/Anna-Rx/Anna/releases{/id}","created_at":"2011-06-18T23:11:38Z","updated_at":"2015-05-02T08:25:27Z","pushed_at":"2015-05-07T13:31:52Z","git_url":"git://github.com/Anna-Rx/Anna.git","ssh_url":"git@github.com:Anna-Rx/Anna.git","clone_url":"https://github.com/Anna-Rx/Anna.git","svn_url":"https://github.com/Anna-Rx/Anna","homepage":"","size":757,"stargazers_count":112,"watchers_count":112,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":4,"forks":16,"open_issues":4,"watchers":112,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Anna-Rx/Anna/pulls/13"},"html":{"href":"https://github.com/Anna-Rx/Anna/pull/13"},"issue":{"href":"https://api.github.com/repos/Anna-Rx/Anna/issues/13"},"comments":{"href":"https://api.github.com/repos/Anna-Rx/Anna/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/Anna-Rx/Anna/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/Anna-Rx/Anna/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Anna-Rx/Anna/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/Anna-Rx/Anna/statuses/98248f8f1f163abf9c47196f8f05ad70a0e87043"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"jfromaniello","id":178512,"avatar_url":"https://avatars.githubusercontent.com/u/178512?v=3","gravatar_id":"","url":"https://api.github.com/users/jfromaniello","html_url":"https://github.com/jfromaniello","followers_url":"https://api.github.com/users/jfromaniello/followers","following_url":"https://api.github.com/users/jfromaniello/following{/other_user}","gists_url":"https://api.github.com/users/jfromaniello/gists{/gist_id}","starred_url":"https://api.github.com/users/jfromaniello/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfromaniello/subscriptions","organizations_url":"https://api.github.com/users/jfromaniello/orgs","repos_url":"https://api.github.com/users/jfromaniello/repos","events_url":"https://api.github.com/users/jfromaniello/events{/privacy}","received_events_url":"https://api.github.com/users/jfromaniello/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":3,"deletions":1,"changed_files":1}}