Skip to content
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

networking: update the websocket library #3131

Merged
merged 1 commit into from
Oct 22, 2021

Conversation

tsachiherman
Copy link
Contributor

Summary

The previous web socket version was not flushing the write buffer when writing a Close control message.
As a result, we ended up disconnection the connection on one side correctly, while having it in a zombie state on the other side.

Test Plan

Use existing tests. The TestSlowPeerDisconnection was already observing the issue being resolved.

@tsachiherman tsachiherman requested a review from a user October 22, 2021 19:12
@tsachiherman tsachiherman self-assigned this Oct 22, 2021
@codecov-commenter
Copy link

codecov-commenter commented Oct 22, 2021

Codecov Report

Merging #3131 (1c92b7a) into master (17429d5) will decrease coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3131      +/-   ##
==========================================
- Coverage   43.70%   43.69%   -0.01%     
==========================================
  Files         390      390              
  Lines       86689    86689              
==========================================
- Hits        37887    37879       -8     
- Misses      42780    42784       +4     
- Partials     6022     6026       +4     
Impacted Files Coverage Δ
agreement/cryptoVerifier.go 75.73% <0.00%> (-2.21%) ⬇️
agreement/proposalManager.go 96.07% <0.00%> (-1.97%) ⬇️
catchup/peerSelector.go 98.95% <0.00%> (-1.05%) ⬇️
data/transactions/verify/txn.go 43.42% <0.00%> (-0.88%) ⬇️
ledger/acctupdates.go 64.25% <0.00%> (-0.60%) ⬇️
network/wsPeer.go 70.66% <0.00%> (+0.79%) ⬆️
network/requestTracker.go 71.12% <0.00%> (+0.86%) ⬆️
data/abi/abi_type.go 93.03% <0.00%> (+0.99%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 17429d5...1c92b7a. Read the comment docs.

@tsachiherman tsachiherman merged commit 2c79cfd into algorand:master Oct 22, 2021
@tsachiherman tsachiherman deleted the tsachi/websocket143 branch October 22, 2021 22:38
onetechnical pushed a commit that referenced this pull request Oct 25, 2021
## Summary

The previous web socket version was not flushing the write buffer when writing a Close control message.
As a result, we ended up disconnection the connection on one side correctly, while having it in a zombie state on the other side.

## Test Plan

Use existing tests. The `TestSlowPeerDisconnection` was already observing the issue being resolved.
cce pushed a commit to cce/go-algorand that referenced this pull request Oct 28, 2021
The previous web socket version was not flushing the write buffer when writing a Close control message.
As a result, we ended up disconnection the connection on one side correctly, while having it in a zombie state on the other side.

Use existing tests. The `TestSlowPeerDisconnection` was already observing the issue being resolved.
@egieseke egieseke mentioned this pull request Nov 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants