Diff

net/server.lua @ 2765:3cb9df793269

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 2764:6f5c30865ddf
child 2766:5fe6ea49cf70
line wrap: on
line diff
--- a/net/server.lua	Thu Dec 03 02:28:34 2009 +0000
+++ b/net/server.lua	Thu Dec 03 14:08:54 2009 +0000
@@ -434,7 +434,7 @@
     handler.bufferlen = function( readlen, sendlen )
         maxsendlen = sendlen or maxsendlen
         maxreadlen = readlen or maxreadlen
-        return maxreadlen, maxsendlen
+        return bufferlen, maxreadlen, maxsendlen
     end
     handler.lock = function( switch )
         if switch == true then