mirror of
https://github.com/TwidereProject/Twidere-Android
synced 2025-02-08 15:58:40 +01:00
Merge pull request #1375 from HugoPoi/feat/read-write-timeout-configurable
feat: KEY_CONNECTION_TIMEOUT set read write timeouts too
This commit is contained in:
commit
f3894f15ec
@ -190,8 +190,8 @@ object HttpClientFactory {
|
||||
|
||||
class HttpClientConfiguration(val prefs: SharedPreferences) {
|
||||
|
||||
var readTimeoutSecs: Long = -1
|
||||
var writeTimeoutSecs: Long = -1
|
||||
var readTimeoutSecs: Long = prefs.getInt(KEY_CONNECTION_TIMEOUT, 10).toLong()
|
||||
var writeTimeoutSecs: Long = prefs.getInt(KEY_CONNECTION_TIMEOUT, 10).toLong()
|
||||
var connectionTimeoutSecs: Long = prefs.getInt(KEY_CONNECTION_TIMEOUT, 10).toLong()
|
||||
var cacheSize: Int = prefs[cacheSizeLimitKey]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user