diff --git a/service/main.lua b/service/main.lua index a8e0e297..863591fa 100644 --- a/service/main.lua +++ b/service/main.lua @@ -1,12 +1,14 @@ local skynet = require "skynet" +local max_client = 64 + skynet.start(function() print("Server start") local service = skynet.newservice("service_mgr") skynet.monitor "simplemonitor" local lualog = skynet.newservice("lualog") local console = skynet.newservice("console") - local watchdog = skynet.newservice("watchdog","8888 4 0") + local watchdog = skynet.newservice("watchdog","8888", max_client, 0) local db = skynet.newservice("simpledb") -- skynet.launch("snlua","testgroup")