Skip to content

Commit db0d7a6

Browse files
committed
fix keep alive data back
1 parent a5e45ee commit db0d7a6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

rsocket-core/src/commonMain/kotlin/io/rsocket/kotlin/connection/KeepAliveHandler.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
package io.rsocket.kotlin.connection
1818

1919
import io.rsocket.kotlin.*
20+
import io.rsocket.kotlin.frame.io.*
2021
import io.rsocket.kotlin.keepalive.*
2122
import kotlinx.atomicfu.*
2223
import kotlinx.coroutines.*
@@ -41,9 +42,7 @@ internal class KeepAliveHandler(
4142
if (currentDelayMillis() - lastMark.value >= keepAlive.maxLifetimeMillis)
4243
throw RSocketError.ConnectionError("No keep-alive for ${keepAlive.maxLifetimeMillis} ms")
4344

44-
outbound.sendKeepAlive(true, Buffer().apply {
45-
writeString(currentDelayMillis().toString())
46-
}, 0)
45+
outbound.sendKeepAlive(true, EmptyBuffer, 0)
4746
}
4847
}
4948
}

0 commit comments

Comments
 (0)