Switch checkpoints on for retryable sends, add back confirmationWindowSize setting

This commit is contained in:
Andras Slemmer 2018-03-09 10:18:39 +00:00
parent 6bed95c02b
commit 4e16c2a06a
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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)