adjust timeout to 3 min

This commit is contained in:
Jacky 2018-03-01 22:48:14 -05:00
parent 77aad7eb05
commit 6af7e6545c

View File

@ -101,8 +101,8 @@ abstract public class GoogleAPIExtension {
@Override @Override
public void initialize(HttpRequest httpRequest) throws IOException { public void initialize(HttpRequest httpRequest) throws IOException {
credential.initialize(httpRequest); credential.initialize(httpRequest);
httpRequest.setConnectTimeout(300 * 60000); // 300 minutes connect timeout httpRequest.setConnectTimeout(3 * 60000); // 3 minutes connect timeout
httpRequest.setReadTimeout(300 * 60000); // 300 minutes read timeout httpRequest.setReadTimeout(3 * 60000); // 3 minutes read timeout
} }
}) })
.setApplicationName(SERVICE_APP_NAME).build(); .setApplicationName(SERVICE_APP_NAME).build();