forked from istio/ztunnel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve logging of errors in copy (istio#1188)
Fixes istio#1183. Before, we logged basically any error during copying. It turns out this confuses users a lot when they see "connection reset by peer" just because the other end shutdown. There are a number of sequences of events that can lead to non-graceful termination of copying, and exposing those to users just brings confusion based on some feedback. For instance, Postgresql always closes connections with a hard RST. This, previously, meant every postgres connection was reported as an "error" in Ztunnel - no good. Looking at Envoy codebase, they do NOT report these as errors: once the connection is started, it can close for any reason silently (*except at debug level, of course). We take the same approach here. Also, add more context on where we are failing (shutdown, write, etc)
- Loading branch information
1 parent
fdab2fb
commit fa32afd
Showing
3 changed files
with
53 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters