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

Tune Swarm<T> #744

Merged
merged 6 commits into from
Dec 27, 2019
Merged

Tune Swarm<T> #744

merged 6 commits into from
Dec 27, 2019

Conversation

longfin
Copy link
Member

@longfin longfin commented Dec 27, 2019

This PR addresses some issues as below

  • Fixed a bug where Swarm<T>.StartAsync() had thrown NullReferenceException when without using NAT and host parameter.
  • To stabilize request processing, Swarm<T>._runtimeProcessor became a long-running task. (it's a dedicated thread.)
  • Swarm<T> became spawn more BindingProxies() to handle TURN request concurrently.
    • We should parameterize its count in the future.

@longfin longfin self-assigned this Dec 27, 2019
@longfin longfin marked this pull request as ready for review December 27, 2019 02:44
{
}
});
catch (NetMQException)
Copy link
Contributor

Choose a reason for hiding this comment

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

How about adding logs when these exceptions occur?

Copy link
Member Author

Choose a reason for hiding this comment

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

I added logs at e337696.

@codecov
Copy link

codecov bot commented Dec 27, 2019

Codecov Report

Merging #744 into master will decrease coverage by 0.03%.
The diff coverage is 64.58%.

@@            Coverage Diff             @@
##           master     #744      +/-   ##
==========================================
- Coverage   86.54%   86.51%   -0.04%     
==========================================
  Files         222      222              
  Lines       19209    19232      +23     
==========================================
+ Hits        16624    16638      +14     
- Misses       1404     1414      +10     
+ Partials     1181     1180       -1
Impacted Files Coverage Δ
Libplanet/Net/Swarm.cs 82.51% <64.58%> (-0.39%) ⬇️
Libplanet.Tests/Net/Protocols/TestSwarm.cs 77.85% <0%> (-0.74%) ⬇️
Libplanet/Crypto/PrivateKey.cs 86.2% <0%> (+0.86%) ⬆️
Libplanet/Net/Protocols/KBucket.cs 94.95% <0%> (+2.52%) ⬆️

earlbread
earlbread previously approved these changes Dec 27, 2019
@longfin
Copy link
Member Author

longfin commented Dec 27, 2019

I added a commit(b63489e) to address an issue that a peer can't request TURN relay properly when it has IPv6 address.

earlbread
earlbread previously approved these changes Dec 27, 2019
CHANGES.md Outdated Show resolved Hide resolved
Co-Authored-By: Hong Minhee <hong.minhee@gmail.com>
@longfin longfin requested a review from dahlia December 27, 2019 04:12
@longfin longfin merged commit 0d8db5e into planetarium:master Dec 27, 2019
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.

3 participants