# HG changeset patch # User Kim Alvefur # Date 1570371823 -7200 # Node ID 6a997f0ceba8c11237b945c83439410c84032f3e # Parent c0a94419c28e4422f0315e42cc6810a35049e07f net.server_epoll: Log TLS version and cipher for all completed handshakes The similar logging in mod_c2s and mod_s2s does not cover all connections, like HTTPS or other Direct TLS ports. diff -r c0a94419c28e -r 6a997f0ceba8 net/server_epoll.lua --- a/net/server_epoll.lua Sun Oct 06 16:07:26 2019 +0200 +++ b/net/server_epoll.lua Sun Oct 06 16:23:43 2019 +0200 @@ -548,7 +548,12 @@ end local ok, err = self.conn:dohandshake(); if ok then - self:debug("TLS handshake complete"); + if self.conn.info then + local info = self.conn:info(); + self:debug("TLS handshake complete (%s with %s)", info.protocol, info.cipher); + else + self:debug("TLS handshake complete"); + end self.onwritable = nil; self.onreadable = nil; self:on("status", "ssl-handshake-complete");