# HG changeset patch # User Matthew Wild # Date 1259849334 0 # Node ID 26f59e5e5c030864a9d95206a6604dc7f71fdc6b # Parent ecbd68fc46dbdbe655d3e81c1c5fd5f63a3fce4e net.server_select: Make bufferlen() method return, of all things, the buffer length diff -r ecbd68fc46db -r 26f59e5e5c03 net/server_select.lua --- a/net/server_select.lua Thu Dec 03 02:30:09 2009 +0000 +++ b/net/server_select.lua Thu Dec 03 14:08:54 2009 +0000 @@ -434,7 +434,7 @@ 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