Software /
code /
prosody
Diff
net/server_select.lua @ 2452:2a51031c9ca3
net.server_select: Add conn:setoption() to set options on the socket
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 12 Jan 2010 15:15:49 +0000 |
parent | 2424:7d3b071e3b5b |
child | 2478:7be72eca5666 |
line wrap: on
line diff
--- a/net/server_select.lua Mon Jan 11 19:17:26 2010 +0500 +++ b/net/server_select.lua Tue Jan 12 15:15:49 2010 +0000 @@ -353,6 +353,9 @@ 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 )