{"action":"closed","issue":{"url":"https://api.github.com/repos/google/google-api-php-client/issues/689","repository_url":"https://api.github.com/repos/google/google-api-php-client","labels_url":"https://api.github.com/repos/google/google-api-php-client/issues/689/labels{/name}","comments_url":"https://api.github.com/repos/google/google-api-php-client/issues/689/comments","events_url":"https://api.github.com/repos/google/google-api-php-client/issues/689/events","html_url":"https://github.com/google/google-api-php-client/issues/689","id":109598240,"number":689,"title":"Issue with curl requests","user":{"login":"jfosnight","id":3527971,"avatar_url":"https://avatars1.githubusercontent.com/u/3527971?v=3","gravatar_id":"","url":"https://api.github.com/users/jfosnight","html_url":"https://github.com/jfosnight","followers_url":"https://api.github.com/users/jfosnight/followers","following_url":"https://api.github.com/users/jfosnight/following{/other_user}","gists_url":"https://api.github.com/users/jfosnight/gists{/gist_id}","starred_url":"https://api.github.com/users/jfosnight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfosnight/subscriptions","organizations_url":"https://api.github.com/users/jfosnight/orgs","repos_url":"https://api.github.com/users/jfosnight/repos","events_url":"https://api.github.com/users/jfosnight/events{/privacy}","received_events_url":"https://api.github.com/users/jfosnight/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2015-10-03T02:31:44Z","updated_at":"2017-03-14T05:12:18Z","closed_at":"2017-03-14T05:12:18Z","body":"I was experiencing the same issue as #663 (verifyIdToken takes long time to load) and as suggested was able to resolve the issue by changing the Curl.php file of the Google Api.  (https://github.com/google/google-api-php-client/blob/master/src/Google/IO/Curl.php)\n\nI placed the code change on line 80, but anywhere within that section should work.  The line (as suggested in the other bug report) was `curl_setopt($curl, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);`  Adding this single line immediately fixed my problem with the API hanging while trying to use it.  (The hanging only manifested itself after 5 minutes of inactivity on the server, as I imagine that was when the DNS timed out.)\n\nI would like to suggest incorporating this change into the API codebase, as the almost 5 second lag time caused by the DNS issue is quite annoying, and having to manually modify the API client is messy.\n"}}
{"actor":{"display_login":"bshaffer"}}