mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-23 11:33:09 +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 agent = c.agent
|
||||
if agent then
|
||||
skynet.redirect(agent, c.client, "client", 1, msg, sz)
|
||||
skynet.redirect(agent, c.client, "client", fd, msg, sz)
|
||||
else
|
||||
skynet.send(watchdog, "lua", "socket", "data", fd, netpack.tostring(msg, sz))
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user