qingyan 5 өдөр өмнө
parent
commit
a852fa1260
1 өөрчлөгдсөн 1 нэмэгдсэн , 0 устгасан
  1. 1 0
      service/main.lua

+ 1 - 0
service/main.lua

@@ -69,6 +69,7 @@ skynet.start(function()
 	local http_balance = 1
 	local id = socket.listen("0.0.0.0",runconfig.httpProt )
 	socket.start(id , function(id, addr)
+		skynet.socket.limit(id, 2 * 1024 * 1024)
 		skynet.send(httpworks[http_balance], "lua", id,addr)
 		http_balance = http_balance + 1
 		if http_balance > #httpworks then