{"action":"opened","number":4817,"pull_request":{"url":"https://api.github.com/repos/facebook/hhvm/pulls/4817","id":29030285,"html_url":"https://github.com/facebook/hhvm/pull/4817","diff_url":"https://github.com/facebook/hhvm/pull/4817.diff","patch_url":"https://github.com/facebook/hhvm/pull/4817.patch","issue_url":"https://api.github.com/repos/facebook/hhvm/issues/4817","number":4817,"state":"open","locked":false,"title":"Fix unnecessary dns lookups on startup of hhvm in non-server mode.","user":{"login":"joelastpass","id":116889,"avatar_url":"https://avatars.githubusercontent.com/u/116889?v=3","gravatar_id":"","url":"https://api.github.com/users/joelastpass","html_url":"https://github.com/joelastpass","followers_url":"https://api.github.com/users/joelastpass/followers","following_url":"https://api.github.com/users/joelastpass/following{/other_user}","gists_url":"https://api.github.com/users/joelastpass/gists{/gist_id}","starred_url":"https://api.github.com/users/joelastpass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joelastpass/subscriptions","organizations_url":"https://api.github.com/users/joelastpass/orgs","repos_url":"https://api.github.com/users/joelastpass/repos","events_url":"https://api.github.com/users/joelastpass/events{/privacy}","received_events_url":"https://api.github.com/users/joelastpass/received_events","type":"User","site_admin":false},"body":"Potentially several reverse DNS lookups are done with every invocation of\r\nhphp,even with no arguments anticipating hphp only being used as a server.\r\nIf your primary DNS server is down, this makes running scripts hang for a\r\nlong period before failure, and slows all scripts down even if your DNS\r\nserver is fast.\r\n\r\nThis makes the lookup lazy so only when necessary, except for #define\r\nFACEBOOK which I didn't want to change the behaviour of (but they probably\r\nshould).\r\n","created_at":"2015-02-10T18:09:06Z","updated_at":"2015-02-10T18:09:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/facebook/hhvm/pulls/4817/commits","review_comments_url":"https://api.github.com/repos/facebook/hhvm/pulls/4817/comments","review_comment_url":"https://api.github.com/repos/facebook/hhvm/pulls/comments/{number}","comments_url":"https://api.github.com/repos/facebook/hhvm/issues/4817/comments","statuses_url":"https://api.github.com/repos/facebook/hhvm/statuses/ec27e40ffea8857bc6359b1106ffb0c047db972b","head":{"label":"joelastpass:topic-fix-dns-lookup-on-startup","ref":"topic-fix-dns-lookup-on-startup","sha":"ec27e40ffea8857bc6359b1106ffb0c047db972b","user":{"login":"joelastpass","id":116889,"avatar_url":"https://avatars.githubusercontent.com/u/116889?v=3","gravatar_id":"","url":"https://api.github.com/users/joelastpass","html_url":"https://github.com/joelastpass","followers_url":"https://api.github.com/users/joelastpass/followers","following_url":"https://api.github.com/users/joelastpass/following{/other_user}","gists_url":"https://api.github.com/users/joelastpass/gists{/gist_id}","starred_url":"https://api.github.com/users/joelastpass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joelastpass/subscriptions","organizations_url":"https://api.github.com/users/joelastpass/orgs","repos_url":"https://api.github.com/users/joelastpass/repos","events_url":"https://api.github.com/users/joelastpass/events{/privacy}","received_events_url":"https://api.github.com/users/joelastpass/received_events","type":"User","site_admin":false},"repo":{"id":23285897,"name":"hhvm","full_name":"joelastpass/hhvm","owner":{"login":"joelastpass","id":116889,"avatar_url":"https://avatars.githubusercontent.com/u/116889?v=3","gravatar_id":"","url":"https://api.github.com/users/joelastpass","html_url":"https://github.com/joelastpass","followers_url":"https://api.github.com/users/joelastpass/followers","following_url":"https://api.github.com/users/joelastpass/following{/other_user}","gists_url":"https://api.github.com/users/joelastpass/gists{/gist_id}","starred_url":"https://api.github.com/users/joelastpass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joelastpass/subscriptions","organizations_url":"https://api.github.com/users/joelastpass/orgs","repos_url":"https://api.github.com/users/joelastpass/repos","events_url":"https://api.github.com/users/joelastpass/events{/privacy}","received_events_url":"https://api.github.com/users/joelastpass/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/joelastpass/hhvm","description":"HHVM is an open-source virtual machine designed for executing programs written in Hack and PHP. HHVM uses a just-in-time (JIT) compilation approach to achieve superior performance while maintaining the flexibility that PHP developers are accustomed to.","fork":true,"url":"https://api.github.com/repos/joelastpass/hhvm","forks_url":"https://api.github.com/repos/joelastpass/hhvm/forks","keys_url":"https://api.github.com/repos/joelastpass/hhvm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/joelastpass/hhvm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/joelastpass/hhvm/teams","hooks_url":"https://api.github.com/repos/joelastpass/hhvm/hooks","issue_events_url":"https://api.github.com/repos/joelastpass/hhvm/issues/events{/number}","events_url":"https://api.github.com/repos/joelastpass/hhvm/events","assignees_url":"https://api.github.com/repos/joelastpass/hhvm/assignees{/user}","branches_url":"https://api.github.com/repos/joelastpass/hhvm/branches{/branch}","tags_url":"https://api.github.com/repos/joelastpass/hhvm/tags","blobs_url":"https://api.github.com/repos/joelastpass/hhvm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/joelastpass/hhvm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/joelastpass/hhvm/git/refs{/sha}","trees_url":"https://api.github.com/repos/joelastpass/hhvm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/joelastpass/hhvm/statuses/{sha}","languages_url":"https://api.github.com/repos/joelastpass/hhvm/languages","stargazers_url":"https://api.github.com/repos/joelastpass/hhvm/stargazers","contributors_url":"https://api.github.com/repos/joelastpass/hhvm/contributors","subscribers_url":"https://api.github.com/repos/joelastpass/hhvm/subscribers","subscription_url":"https://api.github.com/repos/joelastpass/hhvm/subscription","commits_url":"https://api.github.com/repos/joelastpass/hhvm/commits{/sha}","git_commits_url":"https://api.github.com/repos/joelastpass/hhvm/git/commits{/sha}","comments_url":"https://api.github.com/repos/joelastpass/hhvm/comments{/number}","issue_comment_url":"https://api.github.com/repos/joelastpass/hhvm/issues/comments/{number}","contents_url":"https://api.github.com/repos/joelastpass/hhvm/contents/{+path}","compare_url":"https://api.github.com/repos/joelastpass/hhvm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/joelastpass/hhvm/merges","archive_url":"https://api.github.com/repos/joelastpass/hhvm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/joelastpass/hhvm/downloads","issues_url":"https://api.github.com/repos/joelastpass/hhvm/issues{/number}","pulls_url":"https://api.github.com/repos/joelastpass/hhvm/pulls{/number}","milestones_url":"https://api.github.com/repos/joelastpass/hhvm/milestones{/number}","notifications_url":"https://api.github.com/repos/joelastpass/hhvm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/joelastpass/hhvm/labels{/name}","releases_url":"https://api.github.com/repos/joelastpass/hhvm/releases{/id}","created_at":"2014-08-24T16:22:28Z","updated_at":"2015-02-10T17:54:34Z","pushed_at":"2015-02-10T18:07:08Z","git_url":"git://github.com/joelastpass/hhvm.git","ssh_url":"git@github.com:joelastpass/hhvm.git","clone_url":"https://github.com/joelastpass/hhvm.git","svn_url":"https://github.com/joelastpass/hhvm","homepage":"http://hhvm.com","size":187010,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":false,"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":"facebook:master","ref":"master","sha":"0a02d3ac5eb66ceef57a80829a707c2478e55ae1","user":{"login":"facebook","id":69631,"avatar_url":"https://avatars.githubusercontent.com/u/69631?v=3","gravatar_id":"","url":"https://api.github.com/users/facebook","html_url":"https://github.com/facebook","followers_url":"https://api.github.com/users/facebook/followers","following_url":"https://api.github.com/users/facebook/following{/other_user}","gists_url":"https://api.github.com/users/facebook/gists{/gist_id}","starred_url":"https://api.github.com/users/facebook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebook/subscriptions","organizations_url":"https://api.github.com/users/facebook/orgs","repos_url":"https://api.github.com/users/facebook/repos","events_url":"https://api.github.com/users/facebook/events{/privacy}","received_events_url":"https://api.github.com/users/facebook/received_events","type":"Organization","site_admin":false},"repo":{"id":455600,"name":"hhvm","full_name":"facebook/hhvm","owner":{"login":"facebook","id":69631,"avatar_url":"https://avatars.githubusercontent.com/u/69631?v=3","gravatar_id":"","url":"https://api.github.com/users/facebook","html_url":"https://github.com/facebook","followers_url":"https://api.github.com/users/facebook/followers","following_url":"https://api.github.com/users/facebook/following{/other_user}","gists_url":"https://api.github.com/users/facebook/gists{/gist_id}","starred_url":"https://api.github.com/users/facebook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebook/subscriptions","organizations_url":"https://api.github.com/users/facebook/orgs","repos_url":"https://api.github.com/users/facebook/repos","events_url":"https://api.github.com/users/facebook/events{/privacy}","received_events_url":"https://api.github.com/users/facebook/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/facebook/hhvm","description":"A virtual machine designed for executing programs written in Hack and PHP. ","fork":false,"url":"https://api.github.com/repos/facebook/hhvm","forks_url":"https://api.github.com/repos/facebook/hhvm/forks","keys_url":"https://api.github.com/repos/facebook/hhvm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/facebook/hhvm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/facebook/hhvm/teams","hooks_url":"https://api.github.com/repos/facebook/hhvm/hooks","issue_events_url":"https://api.github.com/repos/facebook/hhvm/issues/events{/number}","events_url":"https://api.github.com/repos/facebook/hhvm/events","assignees_url":"https://api.github.com/repos/facebook/hhvm/assignees{/user}","branches_url":"https://api.github.com/repos/facebook/hhvm/branches{/branch}","tags_url":"https://api.github.com/repos/facebook/hhvm/tags","blobs_url":"https://api.github.com/repos/facebook/hhvm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/facebook/hhvm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/facebook/hhvm/git/refs{/sha}","trees_url":"https://api.github.com/repos/facebook/hhvm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/facebook/hhvm/statuses/{sha}","languages_url":"https://api.github.com/repos/facebook/hhvm/languages","stargazers_url":"https://api.github.com/repos/facebook/hhvm/stargazers","contributors_url":"https://api.github.com/repos/facebook/hhvm/contributors","subscribers_url":"https://api.github.com/repos/facebook/hhvm/subscribers","subscription_url":"https://api.github.com/repos/facebook/hhvm/subscription","commits_url":"https://api.github.com/repos/facebook/hhvm/commits{/sha}","git_commits_url":"https://api.github.com/repos/facebook/hhvm/git/commits{/sha}","comments_url":"https://api.github.com/repos/facebook/hhvm/comments{/number}","issue_comment_url":"https://api.github.com/repos/facebook/hhvm/issues/comments/{number}","contents_url":"https://api.github.com/repos/facebook/hhvm/contents/{+path}","compare_url":"https://api.github.com/repos/facebook/hhvm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/facebook/hhvm/merges","archive_url":"https://api.github.com/repos/facebook/hhvm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/facebook/hhvm/downloads","issues_url":"https://api.github.com/repos/facebook/hhvm/issues{/number}","pulls_url":"https://api.github.com/repos/facebook/hhvm/pulls{/number}","milestones_url":"https://api.github.com/repos/facebook/hhvm/milestones{/number}","notifications_url":"https://api.github.com/repos/facebook/hhvm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/facebook/hhvm/labels{/name}","releases_url":"https://api.github.com/repos/facebook/hhvm/releases{/id}","created_at":"2010-01-02T01:17:06Z","updated_at":"2015-02-10T17:16:29Z","pushed_at":"2015-02-10T15:40:31Z","git_url":"git://github.com/facebook/hhvm.git","ssh_url":"git@github.com:facebook/hhvm.git","clone_url":"https://github.com/facebook/hhvm.git","svn_url":"https://github.com/facebook/hhvm","homepage":"http://hhvm.com","size":356211,"stargazers_count":10938,"watchers_count":10938,"language":"C++","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":1916,"mirror_url":null,"open_issues_count":515,"forks":1916,"open_issues":515,"watchers":10938,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/facebook/hhvm/pulls/4817"},"html":{"href":"https://github.com/facebook/hhvm/pull/4817"},"issue":{"href":"https://api.github.com/repos/facebook/hhvm/issues/4817"},"comments":{"href":"https://api.github.com/repos/facebook/hhvm/issues/4817/comments"},"review_comments":{"href":"https://api.github.com/repos/facebook/hhvm/pulls/4817/comments"},"review_comment":{"href":"https://api.github.com/repos/facebook/hhvm/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/facebook/hhvm/pulls/4817/commits"},"statuses":{"href":"https://api.github.com/repos/facebook/hhvm/statuses/ec27e40ffea8857bc6359b1106ffb0c047db972b"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":8,"additions":34,"deletions":10,"changed_files":5}}