change default timeout time (#680)
This commit is contained in:
@@ -23,7 +23,7 @@ class Defaults {
|
|||||||
companion object {
|
companion object {
|
||||||
const val maxMessageSize: Int = 32 * 1024 * 1024
|
const val maxMessageSize: Int = 32 * 1024 * 1024
|
||||||
const val maxMetadataSize = 16384
|
const val maxMetadataSize = 16384
|
||||||
val timeout: Duration = Duration.ofSeconds(60)
|
val timeout: Duration = Duration.ofSeconds(85)
|
||||||
val timeoutInternal: Duration = timeout.dividedBy(4)
|
val timeoutInternal: Duration = timeout.dividedBy(4)
|
||||||
val internalCallsTimeout = Duration.ofSeconds(5)
|
val internalCallsTimeout = Duration.ofSeconds(5)
|
||||||
val retryConnection: Duration = Duration.ofSeconds(10)
|
val retryConnection: Duration = Duration.ofSeconds(10)
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ class WebsocketPendingTxes(
|
|||||||
override fun createConnection(): Flux<TransactionId> {
|
override fun createConnection(): Flux<TransactionId> {
|
||||||
return wsSubscriptions.subscribe(ChainRequest("eth_subscribe", ListParams(EthereumEgressSubscription.METHOD_PENDING_TXES)))
|
return wsSubscriptions.subscribe(ChainRequest("eth_subscribe", ListParams(EthereumEgressSubscription.METHOD_PENDING_TXES)))
|
||||||
.data
|
.data
|
||||||
.timeout(Duration.ofSeconds(60), Mono.empty())
|
.timeout(Duration.ofSeconds(85), Mono.empty())
|
||||||
.map {
|
.map {
|
||||||
// comes as a JS string, i.e., within quotes
|
// comes as a JS string, i.e., within quotes
|
||||||
val value = ByteArray(it.size - 2)
|
val value = ByteArray(it.size - 2)
|
||||||
|
|||||||
@@ -47,9 +47,9 @@ class GenericSubscriptionConnect(
|
|||||||
return conn.subscribe(ChainRequest(topic, ListParams(getParams(params) as List<Any>)))
|
return conn.subscribe(ChainRequest(topic, ListParams(getParams(params) as List<Any>)))
|
||||||
.data
|
.data
|
||||||
.timeout(
|
.timeout(
|
||||||
Duration.ofSeconds(60),
|
Duration.ofSeconds(85),
|
||||||
Mono.empty<ByteArray?>().doOnEach {
|
Mono.empty<ByteArray?>().doOnEach {
|
||||||
log.warn("Timeout during subscription to $topic")
|
log.warn("Timeout during subscription to $topic after 85 seconds")
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
.onErrorResume {
|
.onErrorResume {
|
||||||
|
|||||||
Reference in New Issue
Block a user