From 335dbb74df72b6ce854417ec2b139f959ab59979 Mon Sep 17 00:00:00 2001 From: Igor Peshansky Date: Sat, 31 Mar 2018 13:14:00 -0400 Subject: [PATCH] Bump the GCE metadata server timeout to 2s. --- src/environment.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/environment.cc b/src/environment.cc index 2f459bf3..bc9ac79b 100644 --- a/src/environment.cc +++ b/src/environment.cc @@ -82,7 +82,7 @@ Environment::Environment(const Configuration& config) std::string Environment::GetMetadataString(const std::string& path) const { http::client::options options; - http::client client(options.timeout(1)); + http::client client(options.timeout(2)); http::client::request request(kGceMetadataServerAddress + path); request << boost::network::header("Metadata-Flavor", "Google"); try {