Software /
code /
prosody
Changeset
2118:2e2e1b46cfe2
net.server_event: conn.usingssl -> conn._usingssl
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 22 Nov 2009 03:53:07 +0000 |
parents | 2117:ce42307f0938 |
children | 2119:9fd2782d63f6 |
files | net/server_event.lua |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/net/server_event.lua Sun Nov 22 03:51:31 2009 +0000 +++ b/net/server_event.lua Sun Nov 22 03:53:07 2009 +0000 @@ -355,7 +355,7 @@ end function interface_mt:ssl() - return self.usingssl + return self._usingssl end function interface_mt:type() @@ -377,14 +377,14 @@ local err if not self._sslctx then -- no ssl available err = "no ssl context available" - elseif self.usingssl then -- startssl was already called + elseif self._usingssl then -- startssl was already called err = "ssl already active" end if err then debug( "error:", err ) return nil, err end - self.usingssl = true + self._usingssl = true self.startsslcallback = function( ) -- we have to start the handshake outside of a read/write event self:_start_ssl(); self.eventstarthandshake = nil @@ -460,7 +460,7 @@ interface.eventwrite = false return -1 else -- can write :) - if interface.usingssl then -- handle luasec + if interface._usingssl then -- handle luasec if interface.eventreadtimeout then -- we have to read first local ret = interface.readcallback( ) -- call readcallback --vdebug( "tried to read in writecallback, result:", ret )