Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Comments

fix: Ignore remote peer closed on write (ConnectionReset)#166

Open
Kissaki wants to merge 2 commits intoFubarDevelopment:master from
Kissaki:fix/ignore-write-err
Open

fix: Ignore remote peer closed on write (ConnectionReset) #166
Kissaki wants to merge 2 commits intoFubarDevelopment:master from
Kissaki:fix/ignore-write-err

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 <jan.klass@ite-si.de>
Co-authored-by: Jan Klass <Jan.Klass@ite-si.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer

@ite-jankl ite-jankl ite-jankl left review comments

Reviewers whose approvals may not affect merge requirements

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /