Skip to content

Commit

Permalink
fix: http client configguration override adopted to EDC 0.6.1 upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
drcgjung committed Apr 25, 2024
1 parent d3b53ab commit 9055b18
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public class HttpClientFactory {
httpDataSourceFactory = HttpClientFactory.class.getClassLoader().loadClass("org.eclipse.edc.connector.dataplane.http.pipeline.HttpDataSourceFactory");
httpClient = httpDataSourceFactory.getDeclaredField("httpClient");
httpClient.setAccessible(true);
okHttpClient = HttpClientFactory.class.getClassLoader().loadClass("org.eclipse.edc.connector.core.base.EdcHttpClientImpl").getDeclaredField("okHttpClient");
okHttpClient = HttpClientFactory.class.getClassLoader().loadClass("org.eclipse.edc.http.client.EdcHttpClientImpl").getDeclaredField("okHttpClient");
okHttpClient.setAccessible(true);
connectTimeoutMillis = OkHttpClient.class.getDeclaredField("connectTimeoutMillis");
connectTimeoutMillis.setAccessible(true);
Expand Down

0 comments on commit 9055b18

Please sign in to comment.