Software /
code /
prosody
Comparison
net/server_epoll.lua @ 10846:d0b098d0f6c3
net.server_epoll: Log some noise before TLS handshake step
This would help pinpoint if a crash happens during the handshake, which
has occurred a few times, e.g. like https://github.com/brunoos/luasec/issues/75
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 22 May 2020 15:20:19 +0200 |
parent | 10683:2f0b7f1d5e75 |
child | 10847:42c8dce6e765 |
comparison
equal
deleted
inserted
replaced
10845:785fa0112411 | 10846:d0b098d0f6c3 |
---|---|
557 self.ondrain = nil; | 557 self.ondrain = nil; |
558 self.onwritable = interface.tlshandskake; | 558 self.onwritable = interface.tlshandskake; |
559 self.onreadable = interface.tlshandskake; | 559 self.onreadable = interface.tlshandskake; |
560 return self:init(); | 560 return self:init(); |
561 end | 561 end |
562 self:noise("Continuing TLS handshake"); | |
562 local ok, err = self.conn:dohandshake(); | 563 local ok, err = self.conn:dohandshake(); |
563 if ok then | 564 if ok then |
564 local info = self.conn.info and self.conn:info(); | 565 local info = self.conn.info and self.conn:info(); |
565 if type(info) == "table" then | 566 if type(info) == "table" then |
566 self:debug("TLS handshake complete (%s with %s)", info.protocol, info.cipher); | 567 self:debug("TLS handshake complete (%s with %s)", info.protocol, info.cipher); |