I am trying to create a multi-threaded server using Tokio following the example below by @alexcrichton. However I cannot get the server to serve using more than one thread. The threads run but only one thread serves connections. I made a test client that created thousands of connections but I still couldn’t get more than one thread to serve.
Here is my working code:
What can I change in the code to make it serve using more than one thread?
E: I am using Windows and MSVC.
E2: The thread that serves the connections is random every time I run the application.