aboutsummaryrefslogtreecommitdiffstats
path: root/net/server_select.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-01-12 15:15:49 +0000
committerMatthew Wild <mwild1@gmail.com>2010-01-12 15:15:49 +0000
commit38b5bebb5e8f53b3a83e4c46a3d2da1bcf6ead95 (patch)
treef1245a8208ad74da8a8573d70fbcd695c6337314 /net/server_select.lua
parentdf3c5d431b9e83a515d7eda09861a58f2831b313 (diff)
downloadprosody-38b5bebb5e8f53b3a83e4c46a3d2da1bcf6ead95.tar.gz
prosody-38b5bebb5e8f53b3a83e4c46a3d2da1bcf6ead95.zip
net.server_select: Add conn:setoption() to set options on the socket
Diffstat (limited to 'net/server_select.lua')
-rw-r--r--net/server_select.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/server_select.lua b/net/server_select.lua
index ad9bdf0b..116b4327 100644
--- a/net/server_select.lua
+++ b/net/server_select.lua
@@ -353,6 +353,9 @@ wrapconnection = function( server, listeners, socket, ip, serverport, clientport
handler.shutdown = function( pattern )
return shutdown( socket, pattern )
end
+ handler.setoption = function (self, option, value)
+ return socket:setoption(option, value);
+ end
handler.close = function( self, forced )
if not handler then return true; end
_readlistlen = removesocket( _readlist, socket, _readlistlen )