aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-12-03 14:08:54 +0000
committerMatthew Wild <mwild1@gmail.com>2009-12-03 14:08:54 +0000
commit6ef7cc4d5a81dc42285fd6d621c9135cf1c042f8 (patch)
treed821edd944438f41decdab04f449865cc82cd597
parent1ecc27bdcae8e97141740f26842fc8c85e97221f (diff)
downloadprosody-6ef7cc4d5a81dc42285fd6d621c9135cf1c042f8.tar.gz
prosody-6ef7cc4d5a81dc42285fd6d621c9135cf1c042f8.zip
net.server_select: Make bufferlen() method return, of all things, the buffer length
-rw-r--r--net/server_select.lua2
1 files changed, 1 insertions, 1 deletions
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