This commit is contained in:
Cloud Wu
2024-07-22 00:52:19 +08:00
parent 027e599037
commit b519c53fe4

View File

@@ -131,7 +131,8 @@ skynet.start(function()
dispatch = dispatch_request,
}
-- fd can write, but don't read fd, the data package will forward from gate though client protocol.
skynet.call(gate, "lua", "forward", fd)
-- forward may fail, see https://github.com/cloudwu/skynet/issues/1958
pcall(skynet.call,gate, "lua", "forward", fd)
skynet.dispatch("lua", function(_,source, cmd, ...)
if cmd == "exit" then