From f214c68ff3a630cbbf8a25a2eec2a93e7e05c191 Mon Sep 17 00:00:00 2001 From: anonymou3 Date: Wed, 19 Jun 2024 14:16:41 +0800 Subject: [PATCH] The listen function supports passing backlog parameters (#1941) Co-authored-by: anonymou3 --- lualib/snax/gateserver.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lualib/snax/gateserver.lua b/lualib/snax/gateserver.lua index ee438637..0f20ba38 100644 --- a/lualib/snax/gateserver.lua +++ b/lualib/snax/gateserver.lua @@ -43,7 +43,7 @@ function gateserver.start(handler) maxclient = conf.maxclient or 1024 nodelay = conf.nodelay skynet.error(string.format("Listen on %s:%d", address, port)) - socket = socketdriver.listen(address, port) + socket = socketdriver.listen(address, port, conf.backlog) listen_context.co = coroutine.running() listen_context.fd = socket skynet.wait(listen_context.co)