-
Notifications
You must be signed in to change notification settings - Fork 307
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
fix: client rpcserver subscriber hang #3246
Conversation
Signed-off-by: Jim Ma <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3246 +/- ##
==========================================
- Coverage 52.86% 52.83% -0.04%
==========================================
Files 192 192
Lines 20341 20351 +10
==========================================
- Hits 10754 10753 -1
- Misses 8788 8796 +8
- Partials 799 802 +3
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Signed-off-by: Jim Ma <[email protected]>
Signed-off-by: Jim Ma <[email protected]>
Signed-off-by: Jim Ma <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LTGM
Description
StartNum > 0
, eg: StartNum = 1sendRemainingPieceTasks
ands.totalPieces
is -1s.totalPieces
is -1, the following check will be skipped and will be sent to remote peer:if s.totalPieces > -1 && uint32(info.Num) < nextPieceNum
, thenlen(s.sentMap)++
s.totalPieces
will be updatedSolution:
We should not check completeness via fuzzy
len(s.sentMap)
, and check the next piece num is a better method.Related Issue
Motivation and Context
Screenshots (if appropriate)
Types of changes
Checklist