Skip to content

Preliminary network class cleanup#4490

Merged
pwojcikdev merged 9 commits intonanocurrency:developfrom
pwojcikdev:networking-fixes-thread
Mar 15, 2024
Merged

Preliminary network class cleanup#4490
pwojcikdev merged 9 commits intonanocurrency:developfrom
pwojcikdev:networking-fixes-thread

Conversation

@pwojcikdev
Copy link
Copy Markdown
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
Copy Markdown
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.

std::shared_ptr<nano::transport::socket> socket;
};

class tcp_message_manager final
Copy link
Copy Markdown
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
Copy Markdown
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
@qwahzi qwahzi added this to the V27 milestone Mar 15, 2024
@pwojcikdev pwojcikdev deleted the networking-fixes-thread branch March 21, 2024 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Merged / V27.0

Development

Successfully merging this pull request may close these issues.

3 participants