set node = false when node is down, see #803

This commit is contained in:
Cloud Wu
2018-02-24 21:26:14 +08:00
parent 9cf4525a8f
commit 1932d33b41
2 changed files with 23 additions and 14 deletions

View File

@@ -20,8 +20,10 @@ skynet.start(function()
-- test snax service
skynet.timeout(300,function()
cluster.reload {
db = false, -- db is down
db3 = "127.0.0.1:2529"
}
print(pcall(cluster.call, "db", sdb, "GET", "a")) -- db is down
end)
local pingserver = cluster.snax("db3", "pingserver")
print(pingserver.req.ping "hello")