Skip to content

Commit 7ae2a23

Browse files
author
Andrew Omondi
committed
Change default timeout to align with other sdks.
1 parent bebc1dc commit 7ae2a23

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Added
1111

12+
## [2.0.17] - 2023-03-20
13+
1214
### Changed
1315

16+
- Aligns default http client timeout to be 100 seconds
1417
- Fixes NullPointerException in GraphErrorResponse#copy
1518

1619
## [2.0.16] - 2023-01-30

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ mavenGroupId = com.microsoft.graph
2525
mavenArtifactId = microsoft-graph-core
2626
mavenMajorVersion = 2
2727
mavenMinorVersion = 0
28-
mavenPatchVersion = 16
28+
mavenPatchVersion = 17
2929
mavenArtifactSuffix =
3030

3131
#These values are used to run functional tests

src/main/java/com/microsoft/graph/httpcore/HttpClients.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
import javax.annotation.Nonnull;
99
import javax.annotation.Nullable;
10+
import java.time.Duration;
1011
import java.util.Objects;
1112

1213
/**
@@ -28,7 +29,10 @@ public static Builder custom() {
2829
return new OkHttpClient.Builder()
2930
.addInterceptor(new TelemetryHandler())
3031
.followRedirects(false)
31-
.followSslRedirects(false);
32+
.followSslRedirects(false)
33+
.connectTimeout(Duration.ofSeconds(100))
34+
.readTimeout(Duration.ofSeconds(100))
35+
.callTimeout(Duration.ofSeconds(100));
3236
}
3337

3438
/**

0 commit comments

Comments
 (0)