mirror of
https://github.com/corda/corda.git
synced 2024-12-27 08:22:35 +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)),
|
||||
shouldRetrySend = true
|
||||
)
|
||||
return stateMachine.suspend(request, maySkipCheckpoint = true)[this]!!.checkPayloadIs(receiveType)
|
||||
return stateMachine.suspend(request, maySkipCheckpoint = false)[this]!!.checkPayloadIs(receiveType)
|
||||
}
|
||||
|
||||
@Suspendable
|
||||
|
@ -225,6 +225,7 @@ class P2PMessagingClient(val config: NodeConfiguration,
|
||||
clientFailureCheckPeriod = -1
|
||||
minLargeMessageSize = maxMessageSize
|
||||
isUseGlobalPools = nodeSerializationEnv != null
|
||||
confirmationWindowSize = config.enterpriseConfiguration.tuning.p2pConfirmationWindowSize
|
||||
}
|
||||
val sessionFactory = locator!!.createSessionFactory()
|
||||
// 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