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

Bundle of envelopes #2939

Merged
merged 8 commits into from
Jul 8, 2019
Merged

Conversation

freimair
Copy link
Member

@freimair freimair commented Jul 6, 2019

Seeing an oszillating pattern of broadcast message numbers in monitoring, @ManfredKarrer and I suspected that the pattern might be caused by the DoS protection mechanisms in place.

This PR introduces a new message that containing a number of existing messages. The hopes are:

  • less connection setup overhead on the network level leading to less network load and hopefully better performance
  • not to spread the bursts of e.g. RefreshOffer messages over a long time

In case this change has a bad effect on network stability (although we do not believe it is going to) we can simply remove the newly created Capability in a future release and thus, quickly get rid of the feature.

I tested the code extensively by running

  • 4 nodes locally
  • they knew each other as seed nodes
  • one of the nodes was connected to the live bisq network
  • had this setup running for days for each iteration

@freimair freimair requested a review from ripcurlx as a code owner July 6, 2019 12:39
@freimair freimair changed the title Envelope of envelopes Bundle of envelopes Jul 8, 2019
@ripcurlx ripcurlx requested a review from sqrrm July 8, 2019 11:24
Copy link
Member

@sqrrm sqrrm left a comment

Choose a reason for hiding this comment

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

Seems like it's a bit risky, but not a bad idea. Need a bit more time to think on it.

@ripcurlx
Copy link
Contributor

ripcurlx commented Jul 8, 2019

Travis already ran through, but it is still showing pending. I'll merge it anyway.
@sqrrm If you find any issues with this implementation I'll revert this changes before the next release.

@ripcurlx ripcurlx merged commit 7b29511 into bisq-network:master Jul 8, 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.

None yet

3 participants