{"action":"created","comment":{"url":"https://api.github.com/repos/klkelley/http-java/pulls/comments/174649986","pull_request_review_id":104044939,"id":174649986,"diff_hunk":"@@ -0,0 +1,37 @@\n+package me.karakelley.http;\n+\n+import java.io.*;\n+import java.net.ServerSocket;\n+\n+\n+class HttpServer {\n+  private final int port;\n+  private final ServerLogger logger;\n+  private ServerSocket serverSocket;\n+  private Integer portNumber;\n+\n+  public HttpServer(int port, ServerLogger logger) {\n+    this.port = port;\n+    this.logger = logger;\n+  }\n+\n+  public void start() {\n+    try (ServerSocket serverSocket = new ServerSocket(port)) {\n+      setPortNumber(serverSocket);\n+      logger.info(\"Started on port \" + portNumber);\n+      while (true)\n+        new HttpConnectionHandler(serverSocket.accept()).start();\n+    } catch (IOException | IllegalArgumentException e) {","path":"src/main/java/me/karakelley/http/HttpServer.java","position":24,"original_position":24,"commit_id":"45fc1b2710969a37939d156cf411811a8178c638","original_commit_id":"45fc1b2710969a37939d156cf411811a8178c638","user":{"login":"aaronlahey","id":1595846,"avatar_url":"https://avatars1.githubusercontent.com/u/1595846?v=4","gravatar_id":"","url":"https://api.github.com/users/aaronlahey","html_url":"https://github.com/aaronlahey","followers_url":"https://api.github.com/users/aaronlahey/followers","following_url":"https://api.github.com/users/aaronlahey/following{/other_user}","gists_url":"https://api.github.com/users/aaronlahey/gists{/gist_id}","starred_url":"https://api.github.com/users/aaronlahey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaronlahey/subscriptions","organizations_url":"https://api.github.com/users/aaronlahey/orgs","repos_url":"https://api.github.com/users/aaronlahey/repos","events_url":"https://api.github.com/users/aaronlahey/events{/privacy}","received_events_url":"https://api.github.com/users/aaronlahey/received_events","type":"User","site_admin":false},"body":"What would cause both of these exceptions?","created_at":"2018-03-15T00:36:39Z","updated_at":"2018-03-15T01:02:38Z","html_url":"https://github.com/klkelley/http-java/pull/6#discussion_r174649986","pull_request_url":"https://api.github.com/repos/klkelley/http-java/pulls/6","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/klkelley/http-java/pulls/comments/174649986"},"html":{"href":"https://github.com/klkelley/http-java/pull/6#discussion_r174649986"},"pull_request":{"href":"https://api.github.com/repos/klkelley/http-java/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/klkelley/http-java/pulls/6","id":174767294,"html_url":"https://github.com/klkelley/http-java/pull/6","diff_url":"https://github.com/klkelley/http-java/pull/6.diff","patch_url":"https://github.com/klkelley/http-java/pull/6.patch","issue_url":"https://api.github.com/repos/klkelley/http-java/issues/6","number":6,"state":"open","locked":false,"title":"Feat get","user":{"login":"klkelley","id":20794282,"avatar_url":"https://avatars3.githubusercontent.com/u/20794282?v=4","gravatar_id":"","url":"https://api.github.com/users/klkelley","html_url":"https://github.com/klkelley","followers_url":"https://api.github.com/users/klkelley/followers","following_url":"https://api.github.com/users/klkelley/following{/other_user}","gists_url":"https://api.github.com/users/klkelley/gists{/gist_id}","starred_url":"https://api.github.com/users/klkelley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klkelley/subscriptions","organizations_url":"https://api.github.com/users/klkelley/orgs","repos_url":"https://api.github.com/users/klkelley/repos","events_url":"https://api.github.com/users/klkelley/events{/privacy}","received_events_url":"https://api.github.com/users/klkelley/received_events","type":"User","site_admin":false},"body":"https://trello.com/c/wStZbilY/69-950-get-request","created_at":"2018-03-13T19:34:35Z","updated_at":"2018-03-15T01:02:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f460dd44c0c2245e7dcfad260b7aed50839e5fc4","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/klkelley/http-java/pulls/6/commits","review_comments_url":"https://api.github.com/repos/klkelley/http-java/pulls/6/comments","review_comment_url":"https://api.github.com/repos/klkelley/http-java/pulls/comments{/number}","comments_url":"https://api.github.com/repos/klkelley/http-java/issues/6/comments","statuses_url":"https://api.github.com/repos/klkelley/http-java/statuses/45fc1b2710969a37939d156cf411811a8178c638","head":{"label":"klkelley:feat-get","ref":"feat-get","sha":"45fc1b2710969a37939d156cf411811a8178c638","user":{"login":"klkelley","id":20794282,"avatar_url":"https://avatars3.githubusercontent.com/u/20794282?v=4","gravatar_id":"","url":"https://api.github.com/users/klkelley","html_url":"https://github.com/klkelley","followers_url":"https://api.github.com/users/klkelley/followers","following_url":"https://api.github.com/users/klkelley/following{/other_user}","gists_url":"https://api.github.com/users/klkelley/gists{/gist_id}","starred_url":"https://api.github.com/users/klkelley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klkelley/subscriptions","organizations_url":"https://api.github.com/users/klkelley/orgs","repos_url":"https://api.github.com/users/klkelley/repos","events_url":"https://api.github.com/users/klkelley/events{/privacy}","received_events_url":"https://api.github.com/users/klkelley/received_events","type":"User","site_admin":false},"repo":{"id":123463023,"name":"http-java","full_name":"klkelley/http-java","owner":{"login":"klkelley","id":20794282,"avatar_url":"https://avatars3.githubusercontent.com/u/20794282?v=4","gravatar_id":"","url":"https://api.github.com/users/klkelley","html_url":"https://github.com/klkelley","followers_url":"https://api.github.com/users/klkelley/followers","following_url":"https://api.github.com/users/klkelley/following{/other_user}","gists_url":"https://api.github.com/users/klkelley/gists{/gist_id}","starred_url":"https://api.github.com/users/klkelley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klkelley/subscriptions","organizations_url":"https://api.github.com/users/klkelley/orgs","repos_url":"https://api.github.com/users/klkelley/repos","events_url":"https://api.github.com/users/klkelley/events{/privacy}","received_events_url":"https://api.github.com/users/klkelley/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/klkelley/http-java","description":"HTTP Server written in Java ","fork":false,"url":"https://api.github.com/repos/klkelley/http-java","forks_url":"https://api.github.com/repos/klkelley/http-java/forks","keys_url":"https://api.github.com/repos/klkelley/http-java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/klkelley/http-java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/klkelley/http-java/teams","hooks_url":"https://api.github.com/repos/klkelley/http-java/hooks","issue_events_url":"https://api.github.com/repos/klkelley/http-java/issues/events{/number}","events_url":"https://api.github.com/repos/klkelley/http-java/events","assignees_url":"https://api.github.com/repos/klkelley/http-java/assignees{/user}","branches_url":"https://api.github.com/repos/klkelley/http-java/branches{/branch}","tags_url":"https://api.github.com/repos/klkelley/http-java/tags","blobs_url":"https://api.github.com/repos/klkelley/http-java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/klkelley/http-java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/klkelley/http-java/git/refs{/sha}","trees_url":"https://api.github.com/repos/klkelley/http-java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/klkelley/http-java/statuses/{sha}","languages_url":"https://api.github.com/repos/klkelley/http-java/languages","stargazers_url":"https://api.github.com/repos/klkelley/http-java/stargazers","contributors_url":"https://api.github.com/repos/klkelley/http-java/contributors","subscribers_url":"https://api.github.com/repos/klkelley/http-java/subscribers","subscription_url":"https://api.github.com/repos/klkelley/http-java/subscription","commits_url":"https://api.github.com/repos/klkelley/http-java/commits{/sha}","git_commits_url":"https://api.github.com/repos/klkelley/http-java/git/commits{/sha}","comments_url":"https://api.github.com/repos/klkelley/http-java/comments{/number}","issue_comment_url":"https://api.github.com/repos/klkelley/http-java/issues/comments{/number}","contents_url":"https://api.github.com/repos/klkelley/http-java/contents/{+path}","compare_url":"https://api.github.com/repos/klkelley/http-java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/klkelley/http-java/merges","archive_url":"https://api.github.com/repos/klkelley/http-java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/klkelley/http-java/downloads","issues_url":"https://api.github.com/repos/klkelley/http-java/issues{/number}","pulls_url":"https://api.github.com/repos/klkelley/http-java/pulls{/number}","milestones_url":"https://api.github.com/repos/klkelley/http-java/milestones{/number}","notifications_url":"https://api.github.com/repos/klkelley/http-java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/klkelley/http-java/labels{/name}","releases_url":"https://api.github.com/repos/klkelley/http-java/releases{/id}","deployments_url":"https://api.github.com/repos/klkelley/http-java/deployments","created_at":"2018-03-01T16:42:12Z","updated_at":"2018-03-14T19:44:37Z","pushed_at":"2018-03-14T20:05:12Z","git_url":"git://github.com/klkelley/http-java.git","ssh_url":"git@github.com:klkelley/http-java.git","clone_url":"https://github.com/klkelley/http-java.git","svn_url":"https://github.com/klkelley/http-java","homepage":null,"size":113,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"klkelley:master","ref":"master","sha":"629655a98f11605729a9c44e18cecfe3d642f97f","user":{"login":"klkelley","id":20794282,"avatar_url":"https://avatars3.githubusercontent.com/u/20794282?v=4","gravatar_id":"","url":"https://api.github.com/users/klkelley","html_url":"https://github.com/klkelley","followers_url":"https://api.github.com/users/klkelley/followers","following_url":"https://api.github.com/users/klkelley/following{/other_user}","gists_url":"https://api.github.com/users/klkelley/gists{/gist_id}","starred_url":"https://api.github.com/users/klkelley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klkelley/subscriptions","organizations_url":"https://api.github.com/users/klkelley/orgs","repos_url":"https://api.github.com/users/klkelley/repos","events_url":"https://api.github.com/users/klkelley/events{/privacy}","received_events_url":"https://api.github.com/users/klkelley/received_events","type":"User","site_admin":false},"repo":{"id":123463023,"name":"http-java","full_name":"klkelley/http-java","owner":{"login":"klkelley","id":20794282,"avatar_url":"https://avatars3.githubusercontent.com/u/20794282?v=4","gravatar_id":"","url":"https://api.github.com/users/klkelley","html_url":"https://github.com/klkelley","followers_url":"https://api.github.com/users/klkelley/followers","following_url":"https://api.github.com/users/klkelley/following{/other_user}","gists_url":"https://api.github.com/users/klkelley/gists{/gist_id}","starred_url":"https://api.github.com/users/klkelley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klkelley/subscriptions","organizations_url":"https://api.github.com/users/klkelley/orgs","repos_url":"https://api.github.com/users/klkelley/repos","events_url":"https://api.github.com/users/klkelley/events{/privacy}","received_events_url":"https://api.github.com/users/klkelley/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/klkelley/http-java","description":"HTTP Server written in Java ","fork":false,"url":"https://api.github.com/repos/klkelley/http-java","forks_url":"https://api.github.com/repos/klkelley/http-java/forks","keys_url":"https://api.github.com/repos/klkelley/http-java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/klkelley/http-java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/klkelley/http-java/teams","hooks_url":"https://api.github.com/repos/klkelley/http-java/hooks","issue_events_url":"https://api.github.com/repos/klkelley/http-java/issues/events{/number}","events_url":"https://api.github.com/repos/klkelley/http-java/events","assignees_url":"https://api.github.com/repos/klkelley/http-java/assignees{/user}","branches_url":"https://api.github.com/repos/klkelley/http-java/branches{/branch}","tags_url":"https://api.github.com/repos/klkelley/http-java/tags","blobs_url":"https://api.github.com/repos/klkelley/http-java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/klkelley/http-java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/klkelley/http-java/git/refs{/sha}","trees_url":"https://api.github.com/repos/klkelley/http-java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/klkelley/http-java/statuses/{sha}","languages_url":"https://api.github.com/repos/klkelley/http-java/languages","stargazers_url":"https://api.github.com/repos/klkelley/http-java/stargazers","contributors_url":"https://api.github.com/repos/klkelley/http-java/contributors","subscribers_url":"https://api.github.com/repos/klkelley/http-java/subscribers","subscription_url":"https://api.github.com/repos/klkelley/http-java/subscription","commits_url":"https://api.github.com/repos/klkelley/http-java/commits{/sha}","git_commits_url":"https://api.github.com/repos/klkelley/http-java/git/commits{/sha}","comments_url":"https://api.github.com/repos/klkelley/http-java/comments{/number}","issue_comment_url":"https://api.github.com/repos/klkelley/http-java/issues/comments{/number}","contents_url":"https://api.github.com/repos/klkelley/http-java/contents/{+path}","compare_url":"https://api.github.com/repos/klkelley/http-java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/klkelley/http-java/merges","archive_url":"https://api.github.com/repos/klkelley/http-java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/klkelley/http-java/downloads","issues_url":"https://api.github.com/repos/klkelley/http-java/issues{/number}","pulls_url":"https://api.github.com/repos/klkelley/http-java/pulls{/number}","milestones_url":"https://api.github.com/repos/klkelley/http-java/milestones{/number}","notifications_url":"https://api.github.com/repos/klkelley/http-java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/klkelley/http-java/labels{/name}","releases_url":"https://api.github.com/repos/klkelley/http-java/releases{/id}","deployments_url":"https://api.github.com/repos/klkelley/http-java/deployments","created_at":"2018-03-01T16:42:12Z","updated_at":"2018-03-14T19:44:37Z","pushed_at":"2018-03-14T20:05:12Z","git_url":"git://github.com/klkelley/http-java.git","ssh_url":"git@github.com:klkelley/http-java.git","clone_url":"https://github.com/klkelley/http-java.git","svn_url":"https://github.com/klkelley/http-java","homepage":null,"size":113,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/klkelley/http-java/pulls/6"},"html":{"href":"https://github.com/klkelley/http-java/pull/6"},"issue":{"href":"https://api.github.com/repos/klkelley/http-java/issues/6"},"comments":{"href":"https://api.github.com/repos/klkelley/http-java/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/klkelley/http-java/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/klkelley/http-java/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/klkelley/http-java/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/klkelley/http-java/statuses/45fc1b2710969a37939d156cf411811a8178c638"}},"author_association":"OWNER"}}
{"actor":{"display_login":"aaronlahey"}}