mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 04:33:05 +00:00
forward fd to agent
This commit is contained in:
@@ -22,7 +22,7 @@ function handler.message(fd, msg, sz)
|
|||||||
local c = connection[fd]
|
local c = connection[fd]
|
||||||
local agent = c.agent
|
local agent = c.agent
|
||||||
if agent then
|
if agent then
|
||||||
skynet.redirect(agent, c.client, "client", 1, msg, sz)
|
skynet.redirect(agent, c.client, "client", fd, msg, sz)
|
||||||
else
|
else
|
||||||
skynet.send(watchdog, "lua", "socket", "data", fd, netpack.tostring(msg, sz))
|
skynet.send(watchdog, "lua", "socket", "data", fd, netpack.tostring(msg, sz))
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user