Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/main/java/com/scanoss/rest/ScanApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ private ScanApi(String scanType, Duration timeout, Integer retryLimit, String ur
if (okHttpClient == null) {
OkHttpClient.Builder okBuilder = new OkHttpClient.Builder();
okBuilder.callTimeout(this.timeout); // Set default timeout
okBuilder.readTimeout(Duration.ZERO); // No read timeout; overall request is bounded by callTimeout
// Build the HTTP client with a custom certificate (ignoring hostname verification)
if (customCert != null && ! customCert.isEmpty()) {
HandshakeCertificates certificates = new HandshakeCertificates.Builder()
Expand Down