Skip to content

ResetConnectionAsync throws SocketException #1602

@bgrainger

Description

@bgrainger

Software versions
MySqlConnector version: 2.4.0

Describe the bug

await Assert.ThrowsAnyAsync<Exception>(async () => await connection.ResetConnectionAsync().ConfigureAwait(false));

This recent test shows that ResetConnectionAsync throws a SocketException (or some other .NET exception for an I/O error).

Expected behavior

It should be wrapped in a MySqlException, like all other I/O exceptions.

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