Software /
code /
prosody
Changeset
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 |
parents | 1544:c7f0938bc33e |
children | 1547:30c548e1d517 1548:b88b30c9e688 |
files | net/server.lua |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
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