Skip to content

Report timeouts as Errors, with original connection (AsyncAccept::Connection) #36

Closed
@ahcodedthat

Description

@ahcodedthat

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions