Skip to content

Conversation

Kissaki
Copy link
Contributor

@Kissaki Kissaki commented Apr 29, 2025

During writing to a connection stream a socket exception (SocketException) may be thrown.

The socket error SocketError.ConnectionReset (10054 WSAECONNRESET) indicates that the remote peer closed the connection.

This lead to unhandled exceptions being thrown and logged.

Given that this is a client initiated abort, there is no issue on the server side. A debug log level log message is appropriate for that, instead of warning or throwing (unhandled) exceptions.


This is reproducible with mass-connects.
In my test scenario I create (sequentially) 20 times (concurrently) 400 TCP connect Tasks.

During writing to a connection stream a socket exception (SocketException) may be thrown.

The socket error SocketError.ConnectionReset (10054 WSAECONNRESET) indicates that the remote peer closed the connection.

This lead to unhandled exceptions being thrown and logged.

Given that this is a client initiated abort, there is no issue on the server side.
A debug log level log message is appropriate for that, instead of warning or throwing (unhandled) exceptions.

---

This is reproducible with mass-connects.
In my test scenario I create (sequentially) 20 times (concurrently) 400 TCP connect Tasks.

Co-authored-by: Jan Klass <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants