mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-23 19:43:09 +00:00
define max client for example
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user