Software /
code /
prosody
Diff
net/server.lua @ 1546:7d7bf705675d
net.server: Initiate the handshake when we should, the more correcter fix for the previous correct fix
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 13 Jul 2009 21:17:51 +0100 |
parent | 1544:c7f0938bc33e |
child | 1570:a46453758631 |
line wrap: on
line diff
--- a/net/server.lua Sun Jul 12 20:32:38 2009 +0100 +++ b/net/server.lua Mon Jul 13 21:17:51 2009 +0100 @@ -536,7 +536,8 @@ socket:settimeout( 0 ) handler.readbuffer = handshake handler.sendbuffer = handshake - if not socket then -- do handshake + handshake( socket ) -- do handshake + if not socket then return nil, nil, "ssl handshake failed"; end else