mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 12:20:41 +00:00
define max client for example
This commit is contained in:
@@ -1,12 +1,14 @@
|
|||||||
local skynet = require "skynet"
|
local skynet = require "skynet"
|
||||||
|
|
||||||
|
local max_client = 64
|
||||||
|
|
||||||
skynet.start(function()
|
skynet.start(function()
|
||||||
print("Server start")
|
print("Server start")
|
||||||
local service = skynet.newservice("service_mgr")
|
local service = skynet.newservice("service_mgr")
|
||||||
skynet.monitor "simplemonitor"
|
skynet.monitor "simplemonitor"
|
||||||
local lualog = skynet.newservice("lualog")
|
local lualog = skynet.newservice("lualog")
|
||||||
local console = skynet.newservice("console")
|
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")
|
local db = skynet.newservice("simpledb")
|
||||||
-- skynet.launch("snlua","testgroup")
|
-- skynet.launch("snlua","testgroup")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user