diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-12-03 14:08:54 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-12-03 14:08:54 +0000 |
commit | 3ad72c194c5c6bf425299d5ecaa466b83c1ddf51 (patch) | |
tree | 7355cb18ab18e81a3200cd785f63d0771a407a58 | |
parent | d3176587c4ccffcee5ba8e4e615d3f161b4fadf6 (diff) | |
download | prosody-3ad72c194c5c6bf425299d5ecaa466b83c1ddf51.tar.gz prosody-3ad72c194c5c6bf425299d5ecaa466b83c1ddf51.zip |
net.server_select: Make bufferlen() method return, of all things, the buffer length
-rw-r--r-- | net/server.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/server.lua b/net/server.lua index 2d27f769..b58d6ee4 100644 --- a/net/server.lua +++ b/net/server.lua @@ -434,7 +434,7 @@ wrapconnection = function( server, listeners, socket, ip, serverport, clientport 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
|