Message from debugger: Terminated due to signal 13 #5131
Unanswered
kettas (kettas226)
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
"io.ktor:ktor-network:2.3.7" open TCP error Message from debugger: Terminated due to signal 13
How can TCP be configured to solve this problem Terminated due to signal 13
coding:
private suspend fun performConnect() {
try {
_connectionState.value = ConnectionState.CONNECTING
logger.d(TAG, "开始连接 ${config.host}:${config.port}")
// // 设置连接超时
// socketTimeout = 30000
// // 设置接收缓冲区大小
// receiveBufferSize = 8192
//
// // 设置发送缓冲区大小
// sendBufferSize = 8192
// // 启用 TCP_NODELAY(禁用 Nagle 算法)
// noDelay = true
// .tls(Dispatchers.IO) {
// serverName = "chat2.jd.com"
// }
}
// startHeartbeat()
All reactions