Changeset

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
parents 2303:ecbd68fc46db
children 2305:7ddd00260808
files net/server_select.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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