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

Prevent ObjectDisposedException during NetMQTransport.DoBroadcast() #1365

Merged
merged 2 commits into from
Jul 28, 2021

Conversation

limebell
Copy link
Member

@limebell limebell commented Jul 1, 2021

This occurs intermittently, but when it occur, Swarm<T> stops. This patch fixes the case when ObjectDisposedException occurs. Closes #1361 and #1362.

@limebell limebell added the bug Something isn't working label Jul 1, 2021
@limebell limebell self-assigned this Jul 1, 2021
@limebell limebell requested review from kfangw and removed request for riemannulus July 1, 2021 06:16
@limebell limebell linked an issue Jul 1, 2021 that may be closed by this pull request
@codecov
Copy link

codecov bot commented Jul 1, 2021

Codecov Report

Merging #1365 (e2dab2b) into main (9455606) will decrease coverage by 0.19%.
The diff coverage is 60.00%.

❗ Current head e2dab2b differs from pull request most recent head 44e33e1. Consider uploading reports for the commit 44e33e1 to get more accurate results

@@            Coverage Diff             @@
##             main    #1365      +/-   ##
==========================================
- Coverage   77.32%   77.12%   -0.20%     
==========================================
  Files         256      253       -3     
  Lines       17230    17092     -138     
==========================================
- Hits        13323    13183     -140     
- Misses       3360     3374      +14     
+ Partials      547      535      -12     
Impacted Files Coverage Δ
Libplanet/Net/Transports/NetMQTransport.cs 80.88% <60.00%> (-0.53%) ⬇️
Libplanet/Store/StoreExtensions.cs 64.70% <0.00%> (-11.16%) ⬇️
Libplanet/Net/SwarmOptions.cs 92.30% <0.00%> (-7.70%) ⬇️
Libplanet/ByteUtil.cs 88.23% <0.00%> (-5.42%) ⬇️
Libplanet/Net/Protocols/RoutingTable.cs 87.89% <0.00%> (-4.86%) ⬇️
Libplanet/Blocks/Block.cs 86.55% <0.00%> (-1.64%) ⬇️
Libplanet/Net/Swarm.BlockSync.cs 73.89% <0.00%> (-1.19%) ⬇️
Libplanet/Blockchain/BlockChain.cs 90.51% <0.00%> (-1.16%) ⬇️
Libplanet/Store/BlockSet.cs 84.48% <0.00%> (-0.52%) ⬇️
Libplanet/Net/Protocols/KademliaProtocol.cs 67.04% <0.00%> (-0.38%) ⬇️
... and 20 more

@longfin longfin added the network Related to networking (Libplanet.Net) label Jul 2, 2021
longfin
longfin previously approved these changes Jul 2, 2021
kfangw
kfangw previously approved these changes Jul 2, 2021
Copy link
Contributor

@kfangw kfangw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit.

CHANGES.md Outdated
@@ -320,6 +322,8 @@ To be released.
[#1343]: https://github.com/planetarium/libplanet/pull/1343
[#1348]: https://github.com/planetarium/libplanet/pull/1348
[#1351]: https://github.com/planetarium/libplanet/pull/1351
[#1363]: https://github.com/planetarium/libplanet/issues/1363
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you explain why this PR related to #1363
Isn't it related to #1361 and #1362 instead?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your review. Amended in 0b325f9

@limebell limebell dismissed stale reviews from kfangw and longfin via 0d16847 July 5, 2021 07:09
@limebell limebell force-pushed the bugfix/prevent-dealer-ode branch 2 times, most recently from 0d16847 to 62379b9 Compare July 5, 2021 07:31
@limebell limebell added bug Something isn't working and removed bug Something isn't working labels Jul 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working network Related to networking (Libplanet.Net)
Projects
None yet
4 participants