Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quiet down TCP RST packet error on read operation #9007

Merged
merged 2 commits into from Sep 14, 2022

Conversation

rtribotte
Copy link
Member

@rtribotte rtribotte commented May 12, 2022

What does this PR do?

This PR decreases the log level for some errors in the TCP proxy.
It changes to debug level errors due to the reception of an RST packet during a read operation.
It also quiets completely further errors on connection closing if the socket is already disconnected.

Motivation

The PR avoids confusion, when one peer is shutting down the connection abruptly with an RST packet, by having the related error logged as debug only.

Fixes #8737

More

  • Added/updated tests
  • Added/updated documentation

pkg/tcp/proxy.go Outdated Show resolved Hide resolved
pkg/tcp/proxy_unix.go Outdated Show resolved Hide resolved
pkg/tcp/proxy_windows.go Outdated Show resolved Hide resolved
@rtribotte rtribotte modified the milestones: 2.8, next Jun 10, 2022
@ldez ldez removed this from the 2.9 milestone Sep 13, 2022
@ldez ldez added this to the 2.9 milestone Sep 14, 2022
Copy link
Member

@juliens juliens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@kevinpollet kevinpollet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kevinpollet kevinpollet changed the title TCP proxy: quiet down RST packet error on read operation Quiet down TCP RST packet error on read operation Sep 14, 2022
Copy link
Member

@tomMoulard tomMoulard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👌

@traefiker traefiker merged commit 89dc466 into traefik:master Sep 14, 2022
v2 automation moved this from To review to Done Sep 14, 2022
@rtribotte rtribotte deleted the quiet-tcp-rst-packet-error-log branch October 17, 2022 06:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
v2
Done
Development

Successfully merging this pull request may close these issues.

TCP error finishing connection: Error while terminating connection
6 participants