Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Preliminary network class cleanup #4490

Merged
merged 9 commits into from
Mar 15, 2024

Conversation

pwojcikdev
Copy link
Contributor

In preparation for future network improvements, this PR reorganizes network class slightly, makes dedicated threads for long lived tasks and removes unused code.

Copy link
Contributor

@clemahieu clemahieu left a comment

Choose a reason for hiding this comment

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

This looks good. It makes significant inroads on the thousand annoyances with the networking code.

@@ -25,6 +25,28 @@ class tcp_message_item final
nano::account node_id;
std::shared_ptr<nano::transport::socket> socket;
};

class tcp_message_manager final
Copy link
Contributor

Choose a reason for hiding this comment

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

Could probably be in its own file.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't want to spend to much time on reworking this manager, since I plan to move this functionality to a message_processor class anyway.

@pwojcikdev pwojcikdev merged commit e1d1517 into nanocurrency:develop Mar 15, 2024
21 of 27 checks passed
@qwahzi qwahzi added this to the V27 milestone Mar 15, 2024
@pwojcikdev pwojcikdev deleted the networking-fixes-thread branch March 21, 2024 19:32
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
Status: Merged / V27.0
Development

Successfully merging this pull request may close these issues.

3 participants