fixed client bug (unhandled connection touts)
All checks were successful
CI / build (push) Successful in 3m7s

This commit is contained in:
2025-01-20 19:18:20 +08:00
parent 3d1847c408
commit 1a78c8092b
6 changed files with 52 additions and 17 deletions

View File

@@ -46,7 +46,8 @@ class BenchmarkCommand : GbcsCommand() {
val random = Random(SecureRandom.getInstance("NativePRNGNonBlocking").nextLong())
while (true) {
val key = Base64.getUrlEncoder().encode(random.nextBytes(16)).toString(Charsets.UTF_8)
val value = random.nextBytes(0x1000)
val content = random.nextInt().toByte()
val value = ByteArray(0x1000, { _ -> content })
yield(key to value)
}
}