Skip to content

Commit

Permalink
Revert "Add an error log to debug errors on the ci test"
Browse files Browse the repository at this point in the history
This reverts commit af42e04.
  • Loading branch information
enobufs committed Dec 30, 2023
1 parent 46f9dc2 commit 4428e86
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions association.go
Original file line number Diff line number Diff line change
Expand Up @@ -507,8 +507,6 @@ func (a *Association) closeAllTimers() {

func (a *Association) readLoop() {
var closeErr error

a.log.Debugf("[%s] readLoop entered", a.name)
defer func() {
// also stop writeLoop, otherwise writeLoop can be leaked
// if connection is lost when there is no writing packet.
Expand All @@ -528,14 +526,9 @@ func (a *Association) readLoop() {
a.log.Debugf("[%s] stats nT3Timeouts : %d", a.name, a.stats.getNumT3Timeouts())
a.log.Debugf("[%s] stats nAckTimeouts: %d", a.name, a.stats.getNumAckTimeouts())
a.log.Debugf("[%s] stats nFastRetrans: %d", a.name, a.stats.getNumFastRetrans())

if errors.Is(closeErr, net.ErrClosed) || errors.Is(closeErr, io.EOF) {
a.log.Debugf("[%s] readLoop exited %s", a.name, closeErr)
} else {
a.log.Errorf("[%s] readLoop exited %s", a.name, closeErr)
}
}()

a.log.Debugf("[%s] readLoop entered", a.name)
buffer := make([]byte, receiveMTU)

for {
Expand All @@ -556,6 +549,8 @@ func (a *Association) readLoop() {
break
}
}

a.log.Debugf("[%s] readLoop exited %s", a.name, closeErr)
}

func (a *Association) writeLoop() {
Expand Down

0 comments on commit 4428e86

Please sign in to comment.