Skip to content

Commit

Permalink
define max client for example
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudwu committed Dec 16, 2013
1 parent 2d8b061 commit b6f57ae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion service/main.lua
Original file line number Diff line number Diff line change
@@ -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")

Expand Down

0 comments on commit b6f57ae

Please sign in to comment.