We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4c2210 commit 71ad41eCopy full SHA for 71ad41e
ipfs-api/src/commonMain/kotlin/io/ipfs/kotlin/defaults/Defaults.kt
@@ -1,6 +1,7 @@
1
package io.ipfs.kotlin.defaults
2
3
import io.ktor.client.*
4
+import io.ktor.client.plugins.*
5
import io.ktor.client.plugins.contentnegotiation.*
6
import io.ktor.serialization.kotlinx.json.*
7
import kotlinx.serialization.json.Json
@@ -13,8 +14,12 @@ internal fun createKTOR() = HttpClient {
13
14
ignoreUnknownKeys = true
15
})
16
}
17
+ install(HttpTimeout) {
18
+ // this socketTimeout can occur w/ okhttp engine when posting larger file
19
+ socketTimeoutMillis = 600_000 // 10 minutes
20
+ }
21
22
-expect internal fun createFileSystem() : FileSystem
23
+expect internal fun createFileSystem(): FileSystem
24
25
0 commit comments