Closed
Description
Currently, when a TLS handshake times out, the connection is closed silently. It would probably be better to report these events to the application as a new variant of tls_listener::Error
, containing the original connection object (AsyncAccept::Connection
), so that the application can fetch the client's IP address (using TcpStream::peer_addr
) and emit a log message.
That way, if an attacker attempts to DoS the application by opening a lot of dummy connections, thus exceeding max_handshakes
, the log messages will tell the administrator what's going on and what the attacker's IP addresses are.
Metadata
Metadata
Assignees
Labels
No labels
Activity