From 74ac9403e8c75b6304ccd47d913e6f1ee9ebe8ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=91=E9=A3=8E?= Date: Thu, 3 Jan 2013 12:59:13 +0800 Subject: [PATCH] remote map table must not be weak --- config | 6 +++--- lualib/skynet.lua | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/config b/config index e3fc0db82..36551c199 100644 --- a/config +++ b/config @@ -2,10 +2,10 @@ root = "./" thread = 8 logger = nil harbor = 1 -address = "127.0.0.1:2525" -master = "127.0.0.1:2012" +address = "127.0.0.1:2526" +master = "127.0.0.1:2013" start = "main" -standalone = "0.0.0.0:2012" +standalone = "0.0.0.0:2013" luaservice = root.."service/?.lua;"..root.."service/?/init.lua" cpath = root.."service/?.so" protopath = root.."proto" diff --git a/lualib/skynet.lua b/lualib/skynet.lua index b8f16f9d0..7b6280769 100644 --- a/lualib/skynet.lua +++ b/lualib/skynet.lua @@ -357,7 +357,6 @@ do local weak_meta = { __mode = "kv" } local meta = getmetatable(c.unpack(c.pack({ __remote = 0 }))) local remote_call_func = setmetatable({}, weak_meta) - setmetatable(meta, weak_meta) local _send = assert(c.send) local _yield = coroutine.yield