{"action":"created","comment":{"url":"https://api.github.com/repos/envoy/Embassy/pulls/comments/65544599","id":65544599,"diff_hunk":"@@ -250,4 +250,30 @@ class HTTPServerTests: XCTestCase {\n         let receivedString = String(bytes: receivedInputData.joinWithSeparator([]), encoding: NSUTF8StringEncoding)\n         XCTAssertEqual(receivedString, postBodyString)\n     }\n+\n+    func testAddressReuse() {\n+        var called: Bool = false\n+        let port = try! getUnusedTCPPort()\n+        let app = { (environ: [String: Any], startResponse: ((String, [(String, String)]) -> Void), sendBody: ([UInt8] -> Void)) in\n+            startResponse(\"200 OK\", [])\n+            sendBody([])\n+            self.loop.stop()\n+            called = true\n+        }\n+        let server1 = HTTPServer(eventLoop: loop, app: app, port: port)\n+        try! server1.start()\n+        server1.stop()\n+\n+        let server2 = HTTPServer(eventLoop: loop, app: app, port: port)\n+        try! server2.start()","path":"EmbassyTests/HTTPServerTests.swift","position":19,"original_position":19,"commit_id":"626e2b63ee6d3bfb77619b227109a85104b32aa0","original_commit_id":"626e2b63ee6d3bfb77619b227109a85104b32aa0","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Force Try Violation: Force tries should be avoided. (force_try)","created_at":"2016-06-02T14:02:33Z","updated_at":"2016-06-02T14:02:33Z","html_url":"https://github.com/envoy/Embassy/pull/8#discussion_r65544599","pull_request_url":"https://api.github.com/repos/envoy/Embassy/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/envoy/Embassy/pulls/comments/65544599"},"html":{"href":"https://github.com/envoy/Embassy/pull/8#discussion_r65544599"},"pull_request":{"href":"https://api.github.com/repos/envoy/Embassy/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/envoy/Embassy/pulls/8","id":72267599,"html_url":"https://github.com/envoy/Embassy/pull/8","diff_url":"https://github.com/envoy/Embassy/pull/8.diff","patch_url":"https://github.com/envoy/Embassy/pull/8.patch","issue_url":"https://api.github.com/repos/envoy/Embassy/issues/8","number":8,"state":"closed","locked":false,"title":"Fix address of server accept socket cannot be reused bug","user":{"login":"victorlin","id":201615,"avatar_url":"https://avatars.githubusercontent.com/u/201615?v=3","gravatar_id":"","url":"https://api.github.com/users/victorlin","html_url":"https://github.com/victorlin","followers_url":"https://api.github.com/users/victorlin/followers","following_url":"https://api.github.com/users/victorlin/following{/other_user}","gists_url":"https://api.github.com/users/victorlin/gists{/gist_id}","starred_url":"https://api.github.com/users/victorlin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victorlin/subscriptions","organizations_url":"https://api.github.com/users/victorlin/orgs","repos_url":"https://api.github.com/users/victorlin/repos","events_url":"https://api.github.com/users/victorlin/events{/privacy}","received_events_url":"https://api.github.com/users/victorlin/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-01T23:15:22Z","updated_at":"2016-06-02T14:02:33Z","closed_at":"2016-06-01T23:31:52Z","merged_at":"2016-06-01T23:31:52Z","merge_commit_sha":"f263c3e5d05334ed575cb5ac95fed8aa572c9383","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/envoy/Embassy/pulls/8/commits","review_comments_url":"https://api.github.com/repos/envoy/Embassy/pulls/8/comments","review_comment_url":"https://api.github.com/repos/envoy/Embassy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/envoy/Embassy/issues/8/comments","statuses_url":"https://api.github.com/repos/envoy/Embassy/statuses/626e2b63ee6d3bfb77619b227109a85104b32aa0","head":{"label":"envoy:bugfix-address-reuse","ref":"bugfix-address-reuse","sha":"626e2b63ee6d3bfb77619b227109a85104b32aa0","user":{"login":"envoy","id":5170619,"avatar_url":"https://avatars.githubusercontent.com/u/5170619?v=3","gravatar_id":"","url":"https://api.github.com/users/envoy","html_url":"https://github.com/envoy","followers_url":"https://api.github.com/users/envoy/followers","following_url":"https://api.github.com/users/envoy/following{/other_user}","gists_url":"https://api.github.com/users/envoy/gists{/gist_id}","starred_url":"https://api.github.com/users/envoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/envoy/subscriptions","organizations_url":"https://api.github.com/users/envoy/orgs","repos_url":"https://api.github.com/users/envoy/repos","events_url":"https://api.github.com/users/envoy/events{/privacy}","received_events_url":"https://api.github.com/users/envoy/received_events","type":"Organization","site_admin":false},"repo":{"id":59251906,"name":"Embassy","full_name":"envoy/Embassy","owner":{"login":"envoy","id":5170619,"avatar_url":"https://avatars.githubusercontent.com/u/5170619?v=3","gravatar_id":"","url":"https://api.github.com/users/envoy","html_url":"https://github.com/envoy","followers_url":"https://api.github.com/users/envoy/followers","following_url":"https://api.github.com/users/envoy/following{/other_user}","gists_url":"https://api.github.com/users/envoy/gists{/gist_id}","starred_url":"https://api.github.com/users/envoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/envoy/subscriptions","organizations_url":"https://api.github.com/users/envoy/orgs","repos_url":"https://api.github.com/users/envoy/repos","events_url":"https://api.github.com/users/envoy/events{/privacy}","received_events_url":"https://api.github.com/users/envoy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/envoy/Embassy","description":"Lightweight async HTTP server in pure Swift for iOS UI Automatic testing data mocking","fork":false,"url":"https://api.github.com/repos/envoy/Embassy","forks_url":"https://api.github.com/repos/envoy/Embassy/forks","keys_url":"https://api.github.com/repos/envoy/Embassy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/envoy/Embassy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/envoy/Embassy/teams","hooks_url":"https://api.github.com/repos/envoy/Embassy/hooks","issue_events_url":"https://api.github.com/repos/envoy/Embassy/issues/events{/number}","events_url":"https://api.github.com/repos/envoy/Embassy/events","assignees_url":"https://api.github.com/repos/envoy/Embassy/assignees{/user}","branches_url":"https://api.github.com/repos/envoy/Embassy/branches{/branch}","tags_url":"https://api.github.com/repos/envoy/Embassy/tags","blobs_url":"https://api.github.com/repos/envoy/Embassy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/envoy/Embassy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/envoy/Embassy/git/refs{/sha}","trees_url":"https://api.github.com/repos/envoy/Embassy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/envoy/Embassy/statuses/{sha}","languages_url":"https://api.github.com/repos/envoy/Embassy/languages","stargazers_url":"https://api.github.com/repos/envoy/Embassy/stargazers","contributors_url":"https://api.github.com/repos/envoy/Embassy/contributors","subscribers_url":"https://api.github.com/repos/envoy/Embassy/subscribers","subscription_url":"https://api.github.com/repos/envoy/Embassy/subscription","commits_url":"https://api.github.com/repos/envoy/Embassy/commits{/sha}","git_commits_url":"https://api.github.com/repos/envoy/Embassy/git/commits{/sha}","comments_url":"https://api.github.com/repos/envoy/Embassy/comments{/number}","issue_comment_url":"https://api.github.com/repos/envoy/Embassy/issues/comments{/number}","contents_url":"https://api.github.com/repos/envoy/Embassy/contents/{+path}","compare_url":"https://api.github.com/repos/envoy/Embassy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/envoy/Embassy/merges","archive_url":"https://api.github.com/repos/envoy/Embassy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/envoy/Embassy/downloads","issues_url":"https://api.github.com/repos/envoy/Embassy/issues{/number}","pulls_url":"https://api.github.com/repos/envoy/Embassy/pulls{/number}","milestones_url":"https://api.github.com/repos/envoy/Embassy/milestones{/number}","notifications_url":"https://api.github.com/repos/envoy/Embassy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/envoy/Embassy/labels{/name}","releases_url":"https://api.github.com/repos/envoy/Embassy/releases{/id}","deployments_url":"https://api.github.com/repos/envoy/Embassy/deployments","created_at":"2016-05-20T00:14:53Z","updated_at":"2016-05-27T19:28:12Z","pushed_at":"2016-06-01T23:32:46Z","git_url":"git://github.com/envoy/Embassy.git","ssh_url":"git@github.com:envoy/Embassy.git","clone_url":"https://github.com/envoy/Embassy.git","svn_url":"https://github.com/envoy/Embassy","homepage":"","size":141,"stargazers_count":4,"watchers_count":4,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":4,"default_branch":"master"}},"base":{"label":"envoy:master","ref":"master","sha":"7e581f2473b909c69d238eaada7dee25ffb6045f","user":{"login":"envoy","id":5170619,"avatar_url":"https://avatars.githubusercontent.com/u/5170619?v=3","gravatar_id":"","url":"https://api.github.com/users/envoy","html_url":"https://github.com/envoy","followers_url":"https://api.github.com/users/envoy/followers","following_url":"https://api.github.com/users/envoy/following{/other_user}","gists_url":"https://api.github.com/users/envoy/gists{/gist_id}","starred_url":"https://api.github.com/users/envoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/envoy/subscriptions","organizations_url":"https://api.github.com/users/envoy/orgs","repos_url":"https://api.github.com/users/envoy/repos","events_url":"https://api.github.com/users/envoy/events{/privacy}","received_events_url":"https://api.github.com/users/envoy/received_events","type":"Organization","site_admin":false},"repo":{"id":59251906,"name":"Embassy","full_name":"envoy/Embassy","owner":{"login":"envoy","id":5170619,"avatar_url":"https://avatars.githubusercontent.com/u/5170619?v=3","gravatar_id":"","url":"https://api.github.com/users/envoy","html_url":"https://github.com/envoy","followers_url":"https://api.github.com/users/envoy/followers","following_url":"https://api.github.com/users/envoy/following{/other_user}","gists_url":"https://api.github.com/users/envoy/gists{/gist_id}","starred_url":"https://api.github.com/users/envoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/envoy/subscriptions","organizations_url":"https://api.github.com/users/envoy/orgs","repos_url":"https://api.github.com/users/envoy/repos","events_url":"https://api.github.com/users/envoy/events{/privacy}","received_events_url":"https://api.github.com/users/envoy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/envoy/Embassy","description":"Lightweight async HTTP server in pure Swift for iOS UI Automatic testing data mocking","fork":false,"url":"https://api.github.com/repos/envoy/Embassy","forks_url":"https://api.github.com/repos/envoy/Embassy/forks","keys_url":"https://api.github.com/repos/envoy/Embassy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/envoy/Embassy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/envoy/Embassy/teams","hooks_url":"https://api.github.com/repos/envoy/Embassy/hooks","issue_events_url":"https://api.github.com/repos/envoy/Embassy/issues/events{/number}","events_url":"https://api.github.com/repos/envoy/Embassy/events","assignees_url":"https://api.github.com/repos/envoy/Embassy/assignees{/user}","branches_url":"https://api.github.com/repos/envoy/Embassy/branches{/branch}","tags_url":"https://api.github.com/repos/envoy/Embassy/tags","blobs_url":"https://api.github.com/repos/envoy/Embassy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/envoy/Embassy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/envoy/Embassy/git/refs{/sha}","trees_url":"https://api.github.com/repos/envoy/Embassy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/envoy/Embassy/statuses/{sha}","languages_url":"https://api.github.com/repos/envoy/Embassy/languages","stargazers_url":"https://api.github.com/repos/envoy/Embassy/stargazers","contributors_url":"https://api.github.com/repos/envoy/Embassy/contributors","subscribers_url":"https://api.github.com/repos/envoy/Embassy/subscribers","subscription_url":"https://api.github.com/repos/envoy/Embassy/subscription","commits_url":"https://api.github.com/repos/envoy/Embassy/commits{/sha}","git_commits_url":"https://api.github.com/repos/envoy/Embassy/git/commits{/sha}","comments_url":"https://api.github.com/repos/envoy/Embassy/comments{/number}","issue_comment_url":"https://api.github.com/repos/envoy/Embassy/issues/comments{/number}","contents_url":"https://api.github.com/repos/envoy/Embassy/contents/{+path}","compare_url":"https://api.github.com/repos/envoy/Embassy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/envoy/Embassy/merges","archive_url":"https://api.github.com/repos/envoy/Embassy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/envoy/Embassy/downloads","issues_url":"https://api.github.com/repos/envoy/Embassy/issues{/number}","pulls_url":"https://api.github.com/repos/envoy/Embassy/pulls{/number}","milestones_url":"https://api.github.com/repos/envoy/Embassy/milestones{/number}","notifications_url":"https://api.github.com/repos/envoy/Embassy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/envoy/Embassy/labels{/name}","releases_url":"https://api.github.com/repos/envoy/Embassy/releases{/id}","deployments_url":"https://api.github.com/repos/envoy/Embassy/deployments","created_at":"2016-05-20T00:14:53Z","updated_at":"2016-05-27T19:28:12Z","pushed_at":"2016-06-01T23:32:46Z","git_url":"git://github.com/envoy/Embassy.git","ssh_url":"git@github.com:envoy/Embassy.git","clone_url":"https://github.com/envoy/Embassy.git","svn_url":"https://github.com/envoy/Embassy","homepage":"","size":141,"stargazers_count":4,"watchers_count":4,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/envoy/Embassy/pulls/8"},"html":{"href":"https://github.com/envoy/Embassy/pull/8"},"issue":{"href":"https://api.github.com/repos/envoy/Embassy/issues/8"},"comments":{"href":"https://api.github.com/repos/envoy/Embassy/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/envoy/Embassy/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/envoy/Embassy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/envoy/Embassy/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/envoy/Embassy/statuses/626e2b63ee6d3bfb77619b227109a85104b32aa0"}}}}
{"actor":{"display_login":"houndci-bot"}}