Skip to content

Set MySqlException error number when SSL exception happens #647

@bgrainger

Description

@bgrainger

When SslStream.AuthenticateAsClientAsync fails, a MySqlException with error code 0 is thrown. It should be MySqlErrorCode.UnableToConnectToHost.

Note that this will break some clients that are currently detecting error code 0: #621 (comment)

In general, all exceptions along the connection path should use UnableToConnectToHost.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions