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

Split normal sockets and p2p sockets handling v2 #15562

Merged
merged 1 commit into from
May 8, 2024

Conversation

RipleyTom
Copy link
Contributor

@RipleyTom RipleyTom commented May 6, 2024

  • Split normal(STREAM & DGRAM) sockets polling from p2p sockets polling into 2 separate threads. This should help a little bit with responsiveness(as before there was a 1ms added delay for native/p2p socks polls).
  • Add a mechanism to both threads to make sure it's sleeping if no sockets are polling/no p2p sockets are active(the p2p thread must constantly poll to check for new data as it operates simulating the system receiving raw data and spreading it to potential active sockets/rpcn internal systems/signaling).
  • Simplified a few things to avoid code repetition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants