File tree Expand file tree Collapse file tree 4 files changed +13
-2
lines changed
main/java/com/microsoft/graph/httpcore
test/java/com/microsoft/graph/httpcore Expand file tree Collapse file tree 4 files changed +13
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ mavenGroupId = com.microsoft.graph
2525mavenArtifactId = microsoft-graph-core
2626mavenMajorVersion = 2
2727mavenMinorVersion = 0
28- mavenPatchVersion = 16
28+ mavenPatchVersion = 17
2929mavenArtifactSuffix =
3030
3131# These values are used to run functional tests
Original file line number Diff line number Diff line change 77
88import javax .annotation .Nonnull ;
99import javax .annotation .Nullable ;
10+ import java .time .Duration ;
1011import 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 /**
Original file line number Diff line number Diff line change 11package com .microsoft .graph .httpcore ;
22
3+ import static org .junit .jupiter .api .Assertions .assertEquals ;
34import static org .junit .jupiter .api .Assertions .assertTrue ;
45import static org .mockito .Mockito .mock ;
56
@@ -16,6 +17,9 @@ public class HttpClientsTest {
1617 public void testHttpClientCreation () {
1718 OkHttpClient httpclient = HttpClients .createDefault (mock (IAuthenticationProvider .class ));
1819 assertTrue (httpclient != null );
20+ assertEquals (100000 ,httpclient .readTimeoutMillis ());
21+ assertEquals (100000 ,httpclient .connectTimeoutMillis ());
22+ assertEquals (100000 ,httpclient .callTimeoutMillis ());
1923 }
2024
2125 @ Test
You can’t perform that action at this time.
0 commit comments