From 6ef7cc4d5a81dc42285fd6d621c9135cf1c042f8 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Thu, 3 Dec 2009 14:08:54 +0000 Subject: net.server_select: Make bufferlen() method return, of all things, the buffer length --- net/server_select.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/server_select.lua b/net/server_select.lua index 566f5ae9..19a2320b 100644 --- a/net/server_select.lua +++ b/net/server_select.lua @@ -434,7 +434,7 @@ wrapconnection = function( server, listeners, socket, ip, serverport, clientport handler.bufferlen = function( self, readlen, sendlen ) maxsendlen = sendlen or maxsendlen maxreadlen = readlen or maxreadlen - return maxreadlen, maxsendlen + return bufferlen, maxreadlen, maxsendlen end handler.lock = function( self, switch ) if switch == true then -- cgit v1.2.3