dongock.kim
10/10/2022, 6:59 AMServerSocket
and a Socket
accepted to this server socket with keepAlive = true
option.
If the client device connected to this Socket
lost internet connection, this Socket
can’t know this socket is broken.
Even though I have a keepAlive
option, can somebody helps me what’s the problem?
Sever
val serverSocket = aSocket(SelectorManager(<http://Dispatchers.IO|Dispatchers.IO>)).tcp().bind(host, port)
val socket = serverSocket.accept()
Client
val socket = aSocket(ActorSelectorManager(<http://Dispatchers.IO|Dispatchers.IO>).tcp().connect(host, port) { keepAlive = true }
e5l
10/10/2022, 7:00 AMdongock.kim
10/10/2022, 7:03 AMdongock.kim
10/10/2022, 7:59 AMdongock.kim
10/11/2022, 1:39 AMe5l
10/11/2022, 6:26 AMdongock.kim
10/11/2022, 7:12 AM