mirror of
https://github.com/openziti/ziti.git
synced 2026-10-12 23:32:02 +00:00
Don't log retransmission error if the associated xgress is closed
This commit is contained in:
@@ -140,8 +140,13 @@ func (retransmitter *Retransmitter) retransmitSender() {
|
||||
case retransmit := <-retransmitter.retransmitSend:
|
||||
if !retransmit.isAcked() {
|
||||
if err := retransmitter.forwarder.ForwardPayload(retransmit.x.address, retransmit.payload); err != nil {
|
||||
logger.WithError(err).Errorf("unexpected error while retransmitting payload from %v", retransmit.x.address)
|
||||
retransmissionFailures.Mark(1)
|
||||
// if xgress is closed, don't log the error. We still want to try retransmitting in case we're re-sending end of session
|
||||
if !retransmit.x.closed.Get() {
|
||||
logger.WithError(err).Errorf("unexpected error while retransmitting payload from %v", retransmit.x.address)
|
||||
retransmissionFailures.Mark(1)
|
||||
} else {
|
||||
logger.WithError(err).Tracef("unexpected error while retransmitting payload from %v", retransmit.x.address)
|
||||
}
|
||||
} else {
|
||||
retransmit.markSent()
|
||||
retransmissions.Mark(1)
|
||||
|
||||
Reference in New Issue
Block a user