Hi. I'm trying to build a server that handles udp ...
# server
y
Hi. I'm trying to build a server that handles udp communication using raw sockets. However, when I open multiple sockets, the communication seems to be delayed by about 5000ms. Is this because ktor is not able to handle multiple sockets async or something?
r
I'm not familiar with Ktor, but if performance proves to be an issue I'd recommend Vert.x. It's a high-performance toolkit, with decent support for Kotlin & coroutines. https://vertx.io/docs/vertx-core/java/#_datagram_sockets_udp https://vertx.io/docs/vertx-lang-kotlin-coroutines/kotlin/
👍 1
y
ktor's raw-socket is a experimental feature, so it may be more stable. I'll try using that one! Thank you!
d
5000ms is not likely 'performance related' -- I suspect a ktor limit or bug
👍 1