Skip to content

Commit

Permalink
The listen function supports passing backlog parameters (#1941)
Browse files Browse the repository at this point in the history
Co-authored-by: anonymou3 <anonymou3>
  • Loading branch information
anonymou3 authored and cloudwu committed Jun 23, 2024
1 parent dc1980d commit f214c68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lualib/snax/gateserver.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f214c68

Please sign in to comment.