mirror of
https://github.com/corda/corda.git
synced 2025-06-02 15:40:53 +00:00
Fix RPCStabilityTests.client doesnt leak threads when it fails to start
(#2037)
This commit is contained in:
parent
076a8ab937
commit
d7ce405ec5
@ -48,7 +48,6 @@ import java.lang.reflect.Method
|
|||||||
import java.nio.file.Path
|
import java.nio.file.Path
|
||||||
import java.nio.file.Paths
|
import java.nio.file.Paths
|
||||||
import java.util.*
|
import java.util.*
|
||||||
import javax.security.cert.X509Certificate
|
|
||||||
|
|
||||||
interface RPCDriverExposedDSLInterface : DriverDSLExposedInterface {
|
interface RPCDriverExposedDSLInterface : DriverDSLExposedInterface {
|
||||||
/**
|
/**
|
||||||
@ -478,6 +477,7 @@ data class RPCDriverDSL(
|
|||||||
): RpcServerHandle {
|
): RpcServerHandle {
|
||||||
val locator = ActiveMQClient.createServerLocatorWithoutHA(brokerHandle.clientTransportConfiguration).apply {
|
val locator = ActiveMQClient.createServerLocatorWithoutHA(brokerHandle.clientTransportConfiguration).apply {
|
||||||
minLargeMessageSize = ArtemisMessagingServer.MAX_FILE_SIZE
|
minLargeMessageSize = ArtemisMessagingServer.MAX_FILE_SIZE
|
||||||
|
isUseGlobalPools = false
|
||||||
}
|
}
|
||||||
val userService = object : RPCUserService {
|
val userService = object : RPCUserService {
|
||||||
override fun getUser(username: String): User? = if (username == rpcUser.username) rpcUser else null
|
override fun getUser(username: String): User? = if (username == rpcUser.username) rpcUser else null
|
||||||
|
Loading…
x
Reference in New Issue
Block a user