Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
[2.x.x] Use blocking IO in P2P to reduce CPU load #2855
Instead we create 2 threads - one for reading, one for writing, both block for 1 second then check stop flag, if it is not set the process continue.
Also we can use all higher level reader/writer methods like read_string, read_exact etc
antiochp left a comment
Yeah. Let's do this.
I'm still doing some testing locally on this branch just to try and break it.