Hello, I am experiencing an issue with ktor networ...
# ktor
j
Hello, I am experiencing an issue with ktor network version 1.3.2. I am using it to build a TCP game server. Sometimes when I call
socket.close()
and then
socket.awaitClosed()
right after on the sockets instantiated by my server, the
awaitClosed
function suspends forever. This happens especially when connections are already lost. I did some investigation on the source code and found this
TCPClientSocketOptions.socketTimeout
property, but it can only be set for client sockets. Is there some way of setting it on the server side? Is there an expected case in which calling
socket.awaitClosed()
after close suspends forever?
😭 1