diff options
author | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2017-11-24 23:55:47 +0300 |
---|---|---|
committer | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2017-11-24 23:55:47 +0300 |
commit | 63c9a7b4641e3306c01a1a000b683ef3103e958c (patch) | |
tree | 7b79ed8c54aa8b9f21e0dbe33cc382b9556143fe /core | |
parent | d3632025ad78af2809f751543f78013c8a4e6def (diff) | |
download | dokka-63c9a7b4641e3306c01a1a000b683ef3103e958c.tar.gz dokka-63c9a7b4641e3306c01a1a000b683ef3103e958c.tar.bz2 dokka-63c9a7b4641e3306c01a1a000b683ef3103e958c.zip |
Set readTimeout in ExternalDocumentationLinkResolver
Diffstat (limited to 'core')
-rw-r--r-- | core/src/main/kotlin/Kotlin/ExternalDocumentationLinkResolver.kt | 1 |
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 -> { |