From b6f57aee0b208e22b03f5f089b79b95548a8e554 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=91=E9=A3=8E?= Date: Mon, 16 Dec 2013 13:54:29 +0800 Subject: [PATCH] define max client for example --- service/main.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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")