added support for debugging connections

This commit is contained in:
Robinson 2023-02-24 16:33:39 +01:00
parent 7fd5f4e577
commit 17ed752ec1
No known key found for this signature in database
GPG Key ID: 8E7DB78588BD6F5C

View File

@ -16,6 +16,7 @@
package dorkbox.network.rmi
import dorkbox.network.connection.Connection
import dorkbox.network.connection.EndPoint
import dorkbox.network.rmi.messages.MethodRequest
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.asContextElement
@ -25,6 +26,7 @@ import mu.KLogger
import java.lang.reflect.InvocationHandler
import java.lang.reflect.Method
import java.util.*
import java.util.concurrent.*
import kotlin.coroutines.Continuation
import kotlin.coroutines.resume
import kotlin.coroutines.resumeWithException
@ -173,7 +175,7 @@ internal class RmiClient(val isGlobal: Boolean,
}
@Volatile private var isAsync = false
@Volatile private var timeoutMillis: Long = 3_000L
@Volatile private var timeoutMillis: Long = if (EndPoint.DEBUG_CONNECTIONS) TimeUnit.HOURS.toMillis(2) else 3_000L
@Volatile private var enableToString = false
@Volatile private var enableHashCode = false
@Volatile private var enableEquals = false