aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin
diff options
context:
space:
mode:
authorSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2017-11-24 23:55:47 +0300
committerSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2017-11-24 23:55:47 +0300
commit63c9a7b4641e3306c01a1a000b683ef3103e958c (patch)
tree7b79ed8c54aa8b9f21e0dbe33cc382b9556143fe /core/src/main/kotlin
parentd3632025ad78af2809f751543f78013c8a4e6def (diff)
downloaddokka-63c9a7b4641e3306c01a1a000b683ef3103e958c.tar.gz
dokka-63c9a7b4641e3306c01a1a000b683ef3103e958c.tar.bz2
dokka-63c9a7b4641e3306c01a1a000b683ef3103e958c.zip
Set readTimeout in ExternalDocumentationLinkResolver
Diffstat (limited to 'core/src/main/kotlin')
-rw-r--r--core/src/main/kotlin/Kotlin/ExternalDocumentationLinkResolver.kt1
1 files changed, 1 insertions, 0 deletions
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 -> {