{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla-services/lua_sandbox/pulls/comments/57240108","id":57240108,"diff_hunk":"@@ -63,9 +73,18 @@ function process_message()\n                 if s == server then\n                     local client = s:accept()\n                     if client then\n+                        local caddr, cport = client:getpeername()\n+                        if not caddr then\n+                            caddr = \"unknown\"\n+                            cport = 0\n+                        end\n+                        if ssl_ctx then\n+                            client = ssl.wrap(client, ssl_ctx)\n+                            assert(client:dohandshake())","path":"sandboxes/heka/input/heka_tcp.lua","position":55,"original_position":55,"commit_id":"627f54f38ec08206f8a8b331a4fe49cf8c828a55","original_commit_id":"627f54f38ec08206f8a8b331a4fe49cf8c828a55","user":{"login":"trink","id":795988,"avatar_url":"https://avatars.githubusercontent.com/u/795988?v=3","gravatar_id":"","url":"https://api.github.com/users/trink","html_url":"https://github.com/trink","followers_url":"https://api.github.com/users/trink/followers","following_url":"https://api.github.com/users/trink/following{/other_user}","gists_url":"https://api.github.com/users/trink/gists{/gist_id}","starred_url":"https://api.github.com/users/trink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trink/subscriptions","organizations_url":"https://api.github.com/users/trink/orgs","repos_url":"https://api.github.com/users/trink/repos","events_url":"https://api.github.com/users/trink/events{/privacy}","received_events_url":"https://api.github.com/users/trink/received_events","type":"User","site_admin":false},"body":"This will terminate the plugin on a timeout correct? (probably not what we want)","created_at":"2016-03-23T21:27:15Z","updated_at":"2016-03-23T21:27:15Z","html_url":"https://github.com/mozilla-services/lua_sandbox/pull/124#discussion_r57240108","pull_request_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/pulls/124","_links":{"self":{"href":"https://api.github.com/repos/mozilla-services/lua_sandbox/pulls/comments/57240108"},"html":{"href":"https://github.com/mozilla-services/lua_sandbox/pull/124#discussion_r57240108"},"pull_request":{"href":"https://api.github.com/repos/mozilla-services/lua_sandbox/pulls/124"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla-services/lua_sandbox/pulls/124","id":63900701,"html_url":"https://github.com/mozilla-services/lua_sandbox/pull/124","diff_url":"https://github.com/mozilla-services/lua_sandbox/pull/124.diff","patch_url":"https://github.com/mozilla-services/lua_sandbox/pull/124.patch","issue_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/issues/124","number":124,"state":"open","locked":false,"title":"Add SSL support for heka_tcp.lua input and output sandboxes","user":{"login":"bbinet","id":76281,"avatar_url":"https://avatars.githubusercontent.com/u/76281?v=3","gravatar_id":"","url":"https://api.github.com/users/bbinet","html_url":"https://github.com/bbinet","followers_url":"https://api.github.com/users/bbinet/followers","following_url":"https://api.github.com/users/bbinet/following{/other_user}","gists_url":"https://api.github.com/users/bbinet/gists{/gist_id}","starred_url":"https://api.github.com/users/bbinet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbinet/subscriptions","organizations_url":"https://api.github.com/users/bbinet/orgs","repos_url":"https://api.github.com/users/bbinet/repos","events_url":"https://api.github.com/users/bbinet/events{/privacy}","received_events_url":"https://api.github.com/users/bbinet/received_events","type":"User","site_admin":false},"body":"Fixes https://github.com/trink/hindsight/issues/27","created_at":"2016-03-23T15:27:08Z","updated_at":"2016-03-23T21:27:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0dca7043cffe97fb9b080f19e171fefa8e7e6d57","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/pulls/124/commits","review_comments_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/pulls/124/comments","review_comment_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/issues/124/comments","statuses_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/statuses/627f54f38ec08206f8a8b331a4fe49cf8c828a55","head":{"label":"bbinet:ssl-support","ref":"ssl-support","sha":"627f54f38ec08206f8a8b331a4fe49cf8c828a55","user":{"login":"bbinet","id":76281,"avatar_url":"https://avatars.githubusercontent.com/u/76281?v=3","gravatar_id":"","url":"https://api.github.com/users/bbinet","html_url":"https://github.com/bbinet","followers_url":"https://api.github.com/users/bbinet/followers","following_url":"https://api.github.com/users/bbinet/following{/other_user}","gists_url":"https://api.github.com/users/bbinet/gists{/gist_id}","starred_url":"https://api.github.com/users/bbinet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbinet/subscriptions","organizations_url":"https://api.github.com/users/bbinet/orgs","repos_url":"https://api.github.com/users/bbinet/repos","events_url":"https://api.github.com/users/bbinet/events{/privacy}","received_events_url":"https://api.github.com/users/bbinet/received_events","type":"User","site_admin":false},"repo":{"id":54105772,"name":"lua_sandbox","full_name":"bbinet/lua_sandbox","owner":{"login":"bbinet","id":76281,"avatar_url":"https://avatars.githubusercontent.com/u/76281?v=3","gravatar_id":"","url":"https://api.github.com/users/bbinet","html_url":"https://github.com/bbinet","followers_url":"https://api.github.com/users/bbinet/followers","following_url":"https://api.github.com/users/bbinet/following{/other_user}","gists_url":"https://api.github.com/users/bbinet/gists{/gist_id}","starred_url":"https://api.github.com/users/bbinet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbinet/subscriptions","organizations_url":"https://api.github.com/users/bbinet/orgs","repos_url":"https://api.github.com/users/bbinet/repos","events_url":"https://api.github.com/users/bbinet/events{/privacy}","received_events_url":"https://api.github.com/users/bbinet/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bbinet/lua_sandbox","description":"Generic Lua sandbox for dynamic data analysis","fork":true,"url":"https://api.github.com/repos/bbinet/lua_sandbox","forks_url":"https://api.github.com/repos/bbinet/lua_sandbox/forks","keys_url":"https://api.github.com/repos/bbinet/lua_sandbox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bbinet/lua_sandbox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bbinet/lua_sandbox/teams","hooks_url":"https://api.github.com/repos/bbinet/lua_sandbox/hooks","issue_events_url":"https://api.github.com/repos/bbinet/lua_sandbox/issues/events{/number}","events_url":"https://api.github.com/repos/bbinet/lua_sandbox/events","assignees_url":"https://api.github.com/repos/bbinet/lua_sandbox/assignees{/user}","branches_url":"https://api.github.com/repos/bbinet/lua_sandbox/branches{/branch}","tags_url":"https://api.github.com/repos/bbinet/lua_sandbox/tags","blobs_url":"https://api.github.com/repos/bbinet/lua_sandbox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bbinet/lua_sandbox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bbinet/lua_sandbox/git/refs{/sha}","trees_url":"https://api.github.com/repos/bbinet/lua_sandbox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bbinet/lua_sandbox/statuses/{sha}","languages_url":"https://api.github.com/repos/bbinet/lua_sandbox/languages","stargazers_url":"https://api.github.com/repos/bbinet/lua_sandbox/stargazers","contributors_url":"https://api.github.com/repos/bbinet/lua_sandbox/contributors","subscribers_url":"https://api.github.com/repos/bbinet/lua_sandbox/subscribers","subscription_url":"https://api.github.com/repos/bbinet/lua_sandbox/subscription","commits_url":"https://api.github.com/repos/bbinet/lua_sandbox/commits{/sha}","git_commits_url":"https://api.github.com/repos/bbinet/lua_sandbox/git/commits{/sha}","comments_url":"https://api.github.com/repos/bbinet/lua_sandbox/comments{/number}","issue_comment_url":"https://api.github.com/repos/bbinet/lua_sandbox/issues/comments{/number}","contents_url":"https://api.github.com/repos/bbinet/lua_sandbox/contents/{+path}","compare_url":"https://api.github.com/repos/bbinet/lua_sandbox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bbinet/lua_sandbox/merges","archive_url":"https://api.github.com/repos/bbinet/lua_sandbox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bbinet/lua_sandbox/downloads","issues_url":"https://api.github.com/repos/bbinet/lua_sandbox/issues{/number}","pulls_url":"https://api.github.com/repos/bbinet/lua_sandbox/pulls{/number}","milestones_url":"https://api.github.com/repos/bbinet/lua_sandbox/milestones{/number}","notifications_url":"https://api.github.com/repos/bbinet/lua_sandbox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bbinet/lua_sandbox/labels{/name}","releases_url":"https://api.github.com/repos/bbinet/lua_sandbox/releases{/id}","deployments_url":"https://api.github.com/repos/bbinet/lua_sandbox/deployments","created_at":"2016-03-17T09:34:06Z","updated_at":"2016-03-17T09:34:07Z","pushed_at":"2016-03-23T16:06:15Z","git_url":"git://github.com/bbinet/lua_sandbox.git","ssh_url":"git@github.com:bbinet/lua_sandbox.git","clone_url":"https://github.com/bbinet/lua_sandbox.git","svn_url":"https://github.com/bbinet/lua_sandbox","homepage":"","size":982,"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":"mozilla-services:master","ref":"master","sha":"88a1b75b8ea52481596d5f88da5588d91db844f1","user":{"login":"mozilla-services","id":1066228,"avatar_url":"https://avatars.githubusercontent.com/u/1066228?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla-services","html_url":"https://github.com/mozilla-services","followers_url":"https://api.github.com/users/mozilla-services/followers","following_url":"https://api.github.com/users/mozilla-services/following{/other_user}","gists_url":"https://api.github.com/users/mozilla-services/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla-services/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla-services/subscriptions","organizations_url":"https://api.github.com/users/mozilla-services/orgs","repos_url":"https://api.github.com/users/mozilla-services/repos","events_url":"https://api.github.com/users/mozilla-services/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla-services/received_events","type":"Organization","site_admin":false},"repo":{"id":14175255,"name":"lua_sandbox","full_name":"mozilla-services/lua_sandbox","owner":{"login":"mozilla-services","id":1066228,"avatar_url":"https://avatars.githubusercontent.com/u/1066228?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla-services","html_url":"https://github.com/mozilla-services","followers_url":"https://api.github.com/users/mozilla-services/followers","following_url":"https://api.github.com/users/mozilla-services/following{/other_user}","gists_url":"https://api.github.com/users/mozilla-services/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla-services/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla-services/subscriptions","organizations_url":"https://api.github.com/users/mozilla-services/orgs","repos_url":"https://api.github.com/users/mozilla-services/repos","events_url":"https://api.github.com/users/mozilla-services/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla-services/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla-services/lua_sandbox","description":"Generic Lua sandbox for dynamic data analysis","fork":false,"url":"https://api.github.com/repos/mozilla-services/lua_sandbox","forks_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/forks","keys_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/teams","hooks_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/hooks","issue_events_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/events","assignees_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/tags","blobs_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/languages","stargazers_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/stargazers","contributors_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/contributors","subscribers_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/subscribers","subscription_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/subscription","commits_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/merges","archive_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/downloads","issues_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/labels{/name}","releases_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/releases{/id}","deployments_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/deployments","created_at":"2013-11-06T14:45:55Z","updated_at":"2016-03-23T16:08:21Z","pushed_at":"2016-03-23T16:06:15Z","git_url":"git://github.com/mozilla-services/lua_sandbox.git","ssh_url":"git@github.com:mozilla-services/lua_sandbox.git","clone_url":"https://github.com/mozilla-services/lua_sandbox.git","svn_url":"https://github.com/mozilla-services/lua_sandbox","homepage":"","size":1016,"stargazers_count":67,"watchers_count":67,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":37,"mirror_url":null,"open_issues_count":7,"forks":37,"open_issues":7,"watchers":67,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla-services/lua_sandbox/pulls/124"},"html":{"href":"https://github.com/mozilla-services/lua_sandbox/pull/124"},"issue":{"href":"https://api.github.com/repos/mozilla-services/lua_sandbox/issues/124"},"comments":{"href":"https://api.github.com/repos/mozilla-services/lua_sandbox/issues/124/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla-services/lua_sandbox/pulls/124/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla-services/lua_sandbox/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla-services/lua_sandbox/pulls/124/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla-services/lua_sandbox/statuses/627f54f38ec08206f8a8b331a4fe49cf8c828a55"}}}}