libcp2p icon indicating copy to clipboard operation
libcp2p copied to clipboard

Basic Networking - Part 4

Open bonedaddy opened this issue 5 years ago • 0 comments

Overview

Up until now the socket server requires two threads for operating. One accepting new connections, another to process them. This increases the resource footprint, and means that if we are using a system with a single available thread, creating more than one will lead to decreased performance. This means we need a way of handling new connections when there's only a single available thread

Expected Outcome

  • Have the ability to run the socket server using a single thread
  • this means we need to switch between performing the following tasks:
    • accepting connections
    • handling new connections

bonedaddy avatar Jul 22 '20 06:07 bonedaddy