diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-10-04 15:58:21 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-10-04 15:58:21 +0100 |
commit | 2be1fcb5af83188bda53dc4e92c7be8e0506a502 (patch) | |
tree | 6f3e283597fd7dfb96bfa268c3c46c5ae7d92b04 /net/server.lua | |
parent | ed6bf969af486da915bdb8e1a0226dcc7d13f192 (diff) | |
download | prosody-2be1fcb5af83188bda53dc4e92c7be8e0506a502.tar.gz prosody-2be1fcb5af83188bda53dc4e92c7be8e0506a502.zip |
net.server: Call handler's status() to notify it of ssl handshake success
Diffstat (limited to 'net/server.lua')
-rw-r--r-- | net/server.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/server.lua b/net/server.lua index 3be846dc..fb05e817 100644 --- a/net/server.lua +++ b/net/server.lua @@ -300,6 +300,7 @@ wrapconnection = function( server, listeners, socket, ip, serverport, clientport local ssl
local dispatch = listeners.incoming or listeners.listener
+ local status = listeners.status
local disconnect = listeners.disconnect
local bufferqueue = { } -- buffer array
@@ -542,7 +543,7 @@ wrapconnection = function( server, listeners, socket, ip, serverport, clientport out_put( "server.lua: ssl handshake done" )
handler.readbuffer = _readbuffer -- when handshake is done, replace the handshake function with regular functions
handler.sendbuffer = _sendbuffer
- -- return dispatch( handler )
+ _ = status and status( handler, "ssl-handshake-complete" )
return true
else
out_put( "server.lua: error during ssl handshake: ", tostring(err) )
|