Skip to content

Conversation

@hsanjuan
Copy link
Contributor

Fixes #979 (hopefully). If connectivity status has been switched from Connected without doing an httpnet DisconnectFrom(), it may be that we keep pinging the peers, and think we are connected to them, but never restore the connectivity status when skipping the connectivity checks (because we are connected). This results in silent, successful "Connect()" requests that do nothing.

@hsanjuan hsanjuan self-assigned this Jul 16, 2025
@hsanjuan hsanjuan requested a review from a team as a code owner July 16, 2025 10:26
Fixes #979 (hopefully). If connectivity status has been switched from
Connected without doing an httpnet DisconnectFrom(), it may be that we keep
pinging the peers, and think we are connected to them, but never restore the
connectivity status when skipping the connectivity checks (because we are
connected). This results in silent, successful "Connect()" requests that do
nothing.
@hsanjuan hsanjuan force-pushed the fix/979-http-hangs branch from c090691 to bc0ab3a Compare July 16, 2025 10:28
@codecov
Copy link

codecov bot commented Jul 16, 2025

Codecov Report

Attention: Patch coverage is 33.33333% with 6 lines in your changes missing coverage. Please review.

Project coverage is 61.54%. Comparing base (6cfa794) to head (bc0ab3a).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
bitswap/network/httpnet/httpnet.go 33.33% 5 Missing and 1 partial ⚠️

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #980      +/-   ##
==========================================
+ Coverage   61.52%   61.54%   +0.02%     
==========================================
  Files         254      254              
  Lines       31487    31494       +7     
==========================================
+ Hits        19371    19382      +11     
+ Misses      10529    10524       -5     
- Partials     1587     1588       +1     
Files with missing lines Coverage Δ
bitswap/network/httpnet/httpnet.go 64.32% <33.33%> (-0.51%) ⬇️

... and 10 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@hsanjuan hsanjuan merged commit 2c5f80a into main Jul 16, 2025
15 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bitswap/httpnet: http client hangs

3 participants