From 63c9a7b4641e3306c01a1a000b683ef3103e958c Mon Sep 17 00:00:00 2001 From: Simon Ogorodnik Date: Fri, 24 Nov 2017 23:55:47 +0300 Subject: Set readTimeout in ExternalDocumentationLinkResolver --- core/src/main/kotlin/Kotlin/ExternalDocumentationLinkResolver.kt | 1 + 1 file changed, 1 insertion(+) (limited to 'core/src/main/kotlin/Kotlin') diff --git a/core/src/main/kotlin/Kotlin/ExternalDocumentationLinkResolver.kt b/core/src/main/kotlin/Kotlin/ExternalDocumentationLinkResolver.kt index f28fcc16..108cee78 100644 --- a/core/src/main/kotlin/Kotlin/ExternalDocumentationLinkResolver.kt +++ b/core/src/main/kotlin/Kotlin/ExternalDocumentationLinkResolver.kt @@ -43,6 +43,7 @@ class ExternalDocumentationLinkResolver @Inject constructor( fun URL.doOpenConnectionToReadContent(timeout: Int = 10000, redirectsAllowed: Int = 16): URLConnection { val connection = this.openConnection() connection.connectTimeout = timeout + connection.readTimeout = timeout when (connection) { is HttpURLConnection -> { -- cgit