Hi, everyone.
I wanna know what the problem is.
I have a
ServerSocket
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 }