Dragonfly is an open source P2P-based file distribution and image acceleration system. It is hosted by the Cloud Native Computing Foundation (CNCF) as an Incubating Level Project.
During host manager RunGC(), reclaim the host directly after host leave peers, as host's ConcurrentUploadCount may not be 0 when the host exits abnormally.
Related Issue
3350
Types of changes
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Documentation Update (if none of the other choices apply)
Checklist
[ ] My change requires a change to the documentation.
Description
During host manager
RunGC()
, reclaim the host directly after host leave peers, as host'sConcurrentUploadCount
may not be 0 when the host exits abnormally.Related Issue
3350
Types of changes
Checklist