Diff

net/server_select.lua @ 2304:26f59e5e5c03

net.server_select: Make bufferlen() method return, of all things, the buffer length
author Matthew Wild <mwild1@gmail.com>
date Thu, 03 Dec 2009 14:08:54 +0000
parent 2302:2dc9bbf25447
child 2307:fc7e0962520a
line wrap: on
line diff
--- 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