mirror of
https://github.com/corda/corda.git
synced 2025-01-14 16:59:52 +00:00
Switch checkpoints on for retryable sends, add back confirmationWindowSize setting
This commit is contained in:
parent
6bed95c02b
commit
4e16c2a06a
@ -153,7 +153,7 @@ abstract class FlowLogic<out T> {
|
|||||||
sessionToMessage = mapOf(this to payload.serialize(context = SerializationDefaults.P2P_CONTEXT)),
|
sessionToMessage = mapOf(this to payload.serialize(context = SerializationDefaults.P2P_CONTEXT)),
|
||||||
shouldRetrySend = true
|
shouldRetrySend = true
|
||||||
)
|
)
|
||||||
return stateMachine.suspend(request, maySkipCheckpoint = true)[this]!!.checkPayloadIs(receiveType)
|
return stateMachine.suspend(request, maySkipCheckpoint = false)[this]!!.checkPayloadIs(receiveType)
|
||||||
}
|
}
|
||||||
|
|
||||||
@Suspendable
|
@Suspendable
|
||||||
|
@ -225,6 +225,7 @@ class P2PMessagingClient(val config: NodeConfiguration,
|
|||||||
clientFailureCheckPeriod = -1
|
clientFailureCheckPeriod = -1
|
||||||
minLargeMessageSize = maxMessageSize
|
minLargeMessageSize = maxMessageSize
|
||||||
isUseGlobalPools = nodeSerializationEnv != null
|
isUseGlobalPools = nodeSerializationEnv != null
|
||||||
|
confirmationWindowSize = config.enterpriseConfiguration.tuning.p2pConfirmationWindowSize
|
||||||
}
|
}
|
||||||
val sessionFactory = locator!!.createSessionFactory()
|
val sessionFactory = locator!!.createSessionFactory()
|
||||||
// Login using the node username. The broker will authenticate us as its node (as opposed to another peer)
|
// Login using the node username. The broker will authenticate us as its node (as opposed to another peer)
|
||||||
|
Loading…
Reference in New Issue
Block a user