Diff

net/server_event.lua @ 2110:99a7f291ddd8

net.server_event: Change to new standard addserver() syntax
author Matthew Wild <mwild1@gmail.com>
date Sat, 21 Nov 2009 17:23:51 +0000
parent 2097:642806f67b75
child 2111:f59d9738437e
line wrap: on
line diff
--- a/net/server_event.lua	Sat Nov 21 17:19:57 2009 +0000
+++ b/net/server_event.lua	Sat Nov 21 17:23:51 2009 +0000
@@ -639,9 +639,9 @@
 end
 
 local addserver = ( function( )
-	return function( addr, port, listener, pattern, backlog, sslcfg, startssl )  -- TODO: check arguments
+	return function( addr, port, listener, pattern, sslcfg, startssl )  -- TODO: check arguments
 		--vdebug( "creating new tcp server with following parameters:", addr or "nil", port or "nil", sslcfg or "nil", startssl or "nil")
-		local server, err = socket.bind( addr, port, backlog )  -- create server socket
+		local server, err = socket.bind( addr, port, cfg.ACCEPT_QUEUE )  -- create server socket
 		if not server then
 			debug( "creating server socket failed because:", err )
 			return nil, err