bugfix: socket open address, and httpd bodylimit

This commit is contained in:
Cloud Wu
2014-10-29 16:51:39 +08:00
parent 2ab689f7c1
commit 6c9ad16077
3 changed files with 6 additions and 5 deletions

View File

@@ -66,6 +66,7 @@ skynet.start(function()
end
local balance = 1
local id = socket.listen("0.0.0.0", 8001)
skynet.error("Listen web port 8001")
socket.start(id , function(id, addr)
skynet.error(string.format("%s connected, pass it to agent :%08x", addr, agent[balance]))
skynet.send(agent[balance], "lua", id)