Skip to content

Commit

Permalink
add WindowUpdate Frame log
Browse files Browse the repository at this point in the history
  • Loading branch information
DMwangnima committed Oct 16, 2024
1 parent 4c90600 commit 8df99f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions pkg/remote/trans/nphttp2/grpc/controlbuf.go
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,7 @@ func (l *loopyWriter) outgoingWindowUpdateHandler(w *outgoingWindowUpdate) error
func (l *loopyWriter) incomingWindowUpdateHandler(w *incomingWindowUpdate) error {
// Otherwise update the quota.
if w.streamID == 0 {
klog.Infof("Recv WindowUpdate Frame, increment: %d", w.increment)
l.sendQuota += w.increment
return nil
}
Expand Down
4 changes: 2 additions & 2 deletions pkg/remote/trans/nphttp2/grpc/flowcontrol.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,10 @@ func (w *ctxWriteQuota) realReplenish(n int) bool {
}
} else {
klog.CtxInfof(w.ctx, "replenish quota failed, curQuota: %d, oriQuota: %d", a, b)
return false
return true
}
}
return true
return false
}

type trInFlow struct {
Expand Down

0 comments on commit 8df99f1

Please sign in to comment.