-
Notifications
You must be signed in to change notification settings - Fork 78
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
Network queues #606
Network queues #606
Conversation
e84a713
to
cc3a4ea
Compare
Codecov Report
@@ Coverage Diff @@
## master #606 +/- ##
==========================================
+ Coverage 63.42% 63.56% +0.13%
==========================================
Files 125 122 -3
Lines 10251 10125 -126
==========================================
- Hits 6502 6436 -66
+ Misses 3450 3384 -66
- Partials 299 305 +6
Continue to review full report at Codecov.
|
cc3a4ea
to
b1a0bc6
Compare
b1a0bc6
to
549b85c
Compare
@roman-khimov @im-kulikov Have you already done benchmarks with this version? |
@fyrchik nope |
To be fair, I don't think it will change benchmark results a lot, but who knows. |
549b85c
to
3c055e2
Compare
As they're directly tied to it.
It should always signal to the server, not duplicating this send and not missing it like it happened in the Server.run().
It's internal state of the peer that no one should care about.
Two queues for high-priority and ordinary messages. Fixes #590. These queues are deliberately made small to avoid buffer bloat problem, there is gonna be another queueing layer above them to compensate for that. The queues are designed to be synchronous in enqueueing, async capabilities are to be added layer above later.
3c055e2
to
0ba6b2a
Compare
OK, I've pushed just the rebased original patches here, so I think they're reviewed enough already to merge (and to fix #590). Newer patches (and I have a queue of them already) are gonna be pushed to the new branch for proper review. |
Problem
#590 and some other bugs.
Solution
This is an initial version that just solves the #590. We need to expand it later with more complex gossiping logic (we have broadcasting instead of that now everywhere).