{"action":"created","issue":{"url":"https://api.github.com/repos/olivere/elastic/issues/145","labels_url":"https://api.github.com/repos/olivere/elastic/issues/145/labels{/name}","comments_url":"https://api.github.com/repos/olivere/elastic/issues/145/comments","events_url":"https://api.github.com/repos/olivere/elastic/issues/145/events","html_url":"https://github.com/olivere/elastic/pull/145","id":110730243,"number":145,"title":"Use the provided http client to do the healthcheck on startup.","user":{"login":"bbassingthwaite-va","id":1919080,"avatar_url":"https://avatars.githubusercontent.com/u/1919080?v=3","gravatar_id":"","url":"https://api.github.com/users/bbassingthwaite-va","html_url":"https://github.com/bbassingthwaite-va","followers_url":"https://api.github.com/users/bbassingthwaite-va/followers","following_url":"https://api.github.com/users/bbassingthwaite-va/following{/other_user}","gists_url":"https://api.github.com/users/bbassingthwaite-va/gists{/gist_id}","starred_url":"https://api.github.com/users/bbassingthwaite-va/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbassingthwaite-va/subscriptions","organizations_url":"https://api.github.com/users/bbassingthwaite-va/orgs","repos_url":"https://api.github.com/users/bbassingthwaite-va/repos","events_url":"https://api.github.com/users/bbassingthwaite-va/events{/privacy}","received_events_url":"https://api.github.com/users/bbassingthwaite-va/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-10-09T20:25:54Z","updated_at":"2015-10-13T17:38:13Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/olivere/elastic/pulls/145","html_url":"https://github.com/olivere/elastic/pull/145","diff_url":"https://github.com/olivere/elastic/pull/145.diff","patch_url":"https://github.com/olivere/elastic/pull/145.patch"},"body":"If a user provides a custom httpClient in the `NewClient`, we need to use that to do the healthcheck. In my case, I have added basic auth to the transport which is required to do a successful healthcheck."},"comment":{"url":"https://api.github.com/repos/olivere/elastic/issues/comments/147787729","html_url":"https://github.com/olivere/elastic/pull/145#issuecomment-147787729","issue_url":"https://api.github.com/repos/olivere/elastic/issues/145","id":147787729,"user":{"login":"olivere","id":134848,"avatar_url":"https://avatars.githubusercontent.com/u/134848?v=3","gravatar_id":"","url":"https://api.github.com/users/olivere","html_url":"https://github.com/olivere","followers_url":"https://api.github.com/users/olivere/followers","following_url":"https://api.github.com/users/olivere/following{/other_user}","gists_url":"https://api.github.com/users/olivere/gists{/gist_id}","starred_url":"https://api.github.com/users/olivere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olivere/subscriptions","organizations_url":"https://api.github.com/users/olivere/orgs","repos_url":"https://api.github.com/users/olivere/repos","events_url":"https://api.github.com/users/olivere/events{/privacy}","received_events_url":"https://api.github.com/users/olivere/received_events","type":"User","site_admin":false},"created_at":"2015-10-13T17:38:13Z","updated_at":"2015-10-13T17:38:13Z","body":"Oh wow, that's pretty bad. Setting up a client is slow. It shouldn't matter in the normal use case because you typically only do it on startup, once. I'd love to have a better solution for App Engine then. What's the typical way to approach this on App Engine then? Can you point me to some articles?\r\n\r\nRegarding the Timeout: Maybe it's even easier... maybe I can skip the healthcheck on startup altogether if the specified transport doesn't support CancelRequest. So you don't have to do anything."}}