Replies: 4 comments
-
我认为你可以在第一次建立连接的时候,用 |
Beta Was this translation helpful? Give feedback.
-
用 local queryed_nodes = {}
local function my_cluster_send(node, address, ...)
if not queryed_nodes[node] then
queryed_nodes[node] = true
local ok,msg = xpcall(cluster.query, debug.traceback, node, address)
if not ok then
skynet.error(msg)
return
end
end
cluster.send(node, address, ...)
end |
Beta Was this translation helpful? Give feedback.
-
skynet 有个 开关 方法 |
Beta Was this translation helpful? Give feedback.
-
从我上面贴的日志可以看出 cluster 去连了一个不存在的节点 |
Beta Was this translation helpful? Give feedback.
-
节点找不到的时候会输出这个错误堆栈,但这个堆栈不能定位到哪块逻辑代码调用的。
我这样修改能输出调用堆栈,但是感觉没报错也调用了
debug.traceback
着实不妥。Beta Was this translation helpful? Give feedback.
All reactions