Skip to content

Commit

Permalink
Removed request timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Galarzaa90 committed Aug 23, 2022
1 parent e523561 commit b585587
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Changelog

## v0.3.0 (20220-08-17)
## v0.3.1 (2022-08-23)

- Removed request timeout.

## v0.3.0 (2022-08-17)

- Added `exaltedDust`, `bossPoints` and `bosstiaryProgress` to Auctions.
- Added boostable bosses parsing.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ import io.ktor.client.call.body
import io.ktor.client.engine.HttpClientEngine
import io.ktor.client.engine.cio.CIO
import io.ktor.client.plugins.Charsets
import io.ktor.client.plugins.HttpTimeout
import io.ktor.client.plugins.ResponseException
import io.ktor.client.plugins.UserAgent
import io.ktor.client.plugins.compression.ContentEncoding
Expand Down Expand Up @@ -148,6 +149,9 @@ open class TibiaKtClient constructor(
constructor(userAgent: String? = null) : this(null, userAgent)

private val client = HttpClient(engine ?: CIO.create()) {
install(HttpTimeout) {
requestTimeoutMillis = HttpTimeout.INFINITE_TIMEOUT_MS
}
Charsets {
register(Charsets.UTF_8)
register(Charsets.ISO_8859_1)
Expand Down

0 comments on commit b585587

Please sign in to comment.