From c95e811fde42ea3911124de4f32eb63d68cc06bf Mon Sep 17 00:00:00 2001 From: Robinson Date: Fri, 11 Aug 2023 16:23:49 -0600 Subject: [PATCH] version 6.7 --- README.md | 4 ++-- build.gradle.kts | 5 ++--- src/dorkbox/network/Client.kt | 2 +- src/dorkbox/network/Configuration.kt | 18 +----------------- src/dorkbox/network/Server.kt | 2 +- 5 files changed, 7 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index ad55732f..8eaa3bc5 100644 --- a/README.md +++ b/README.md @@ -72,7 +72,7 @@ Maven Info com.dorkbox Network - 6.6 + 6.7 ``` @@ -82,7 +82,7 @@ Gradle Info ``` dependencies { ... - implementation("com.dorkbox:Network:6.6") + implementation("com.dorkbox:Network:6.7") } ``` diff --git a/build.gradle.kts b/build.gradle.kts index 84f960d0..e2180895 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -37,7 +37,7 @@ object Extras { // set for the project const val description = "High-performance, event-driven/reactive network stack for Java 11+" const val group = "com.dorkbox" - const val version = "6.6" + const val version = "6.7" // set as project.ext const val name = "Network" @@ -168,7 +168,7 @@ dependencies { // https://github.com/dorkbox api("com.dorkbox:ByteUtilities:1.14") api("com.dorkbox:ClassUtils:1.2") - api("com.dorkbox:Collections:2.3") + api("com.dorkbox:Collections:2.4") api("com.dorkbox:JNA:1.0") api("com.dorkbox:MinLog:2.5") api("com.dorkbox:NetworkDNS:2.11") @@ -223,7 +223,6 @@ dependencies { - testImplementation("junit:junit:4.13.2") testImplementation("ch.qos.logback:logback-classic:1.4.5") testImplementation("io.aeron:aeron-all:$aeronVer") diff --git a/src/dorkbox/network/Client.kt b/src/dorkbox/network/Client.kt index 4c49784e..78409b20 100644 --- a/src/dorkbox/network/Client.kt +++ b/src/dorkbox/network/Client.kt @@ -117,7 +117,7 @@ open class Client( /** * Gets the version number. */ - const val version = "6.6" + const val version = "6.7" /** * Ensures that the client (using the specified configuration) is NO LONGER running. diff --git a/src/dorkbox/network/Configuration.kt b/src/dorkbox/network/Configuration.kt index 171e8b5f..aff79217 100644 --- a/src/dorkbox/network/Configuration.kt +++ b/src/dorkbox/network/Configuration.kt @@ -48,7 +48,7 @@ class ServerConfiguration : dorkbox.network.Configuration() { /** * Gets the version number. */ - const val version = "6.6" + const val version = "6.7" } /** @@ -420,19 +420,6 @@ abstract class Configuration protected constructor() { field = value } - /** - * How often to check if the underlying aeron publication/subscription is connected or not. - * - * Aeron Publications and Subscriptions are, and can be, constantly in flux (because of UDP!). - * - * Too low and it's wasting CPU cycles, too high and there will be some lag when detecting if a connection has been disconnected. - */ - var connectionCheckIntervalNanos = TimeUnit.MILLISECONDS.toNanos(200) - set(value) { - require(!contextDefined) { errorMessage } - field = value - } - /** * How long a connection must be disconnected (via Aeron) before we actually consider it disconnected. @@ -1063,7 +1050,6 @@ abstract class Configuration protected constructor() { config.udpId = udpId config.enableRemoteSignatureValidation = enableRemoteSignatureValidation config.connectionCloseTimeoutInSeconds = connectionCloseTimeoutInSeconds - config.connectionCheckIntervalNanos = connectionCheckIntervalNanos config.connectionExpirationTimoutNanos = connectionExpirationTimoutNanos config.isReliable = isReliable config.pingTimeoutSeconds = pingTimeoutSeconds @@ -1127,7 +1113,6 @@ abstract class Configuration protected constructor() { if (enableRemoteSignatureValidation != other.enableRemoteSignatureValidation) return false if (connectionCloseTimeoutInSeconds != other.connectionCloseTimeoutInSeconds) return false - if (connectionCheckIntervalNanos != other.connectionCheckIntervalNanos) return false if (connectionExpirationTimoutNanos != other.connectionExpirationTimoutNanos) return false if (isReliable != other.isReliable) return false @@ -1160,7 +1145,6 @@ abstract class Configuration protected constructor() { result = 31 * result + udpId result = 31 * result + pingTimeoutSeconds result = 31 * result + connectionCloseTimeoutInSeconds - result = 31 * result + connectionCheckIntervalNanos.hashCode() result = 31 * result + connectionExpirationTimoutNanos.hashCode() result = 31 * result + isReliable.hashCode() result = 31 * result + messageDispatch.hashCode() diff --git a/src/dorkbox/network/Server.kt b/src/dorkbox/network/Server.kt index 2b8a87dc..a99eff87 100644 --- a/src/dorkbox/network/Server.kt +++ b/src/dorkbox/network/Server.kt @@ -117,7 +117,7 @@ open class Server( /** * Gets the version number. */ - const val version = "6.6" + const val version = "6.7" /** * Ensures that an endpoint (using the specified configuration) is NO LONGER running.