Skip to content

Commit 7956475

Browse files
committed
feat: Increase default Read API timeout to 60s
1 parent 50bef38 commit 7956475

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQueryOptions.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
public class BigQueryOptions extends ServiceOptions<BigQuery, BigQueryOptions> {
3131

3232
private static final String API_SHORT_NAME = "BigQuery";
33+
private static final int DEFAULT_READ_API_TIME_OUT = 60000;
3334
private static final String BIGQUERY_SCOPE = "https://www.googleapis.com/auth/bigquery";
3435
private static final Set<String> SCOPES = ImmutableSet.of(BIGQUERY_SCOPE);
3536
private static final long serialVersionUID = -2437598817433266049L;
@@ -113,7 +114,7 @@ public TransportOptions getDefaultTransportOptions() {
113114
}
114115

115116
public static HttpTransportOptions getDefaultHttpTransportOptions() {
116-
return HttpTransportOptions.newBuilder().build();
117+
return HttpTransportOptions.newBuilder().setReadTimeout(DEFAULT_READ_API_TIME_OUT).build();
117118
}
118119

119120
@Override

0 commit comments

Comments
 (0)