Winsock tcp/ip Socket listening but connection refused, race condition?
- by Wayne
Hello folks.
This involves two automated unit tests which each start up a tcp/ip server that creates a non-blocking socket then bind()s and listen()s in a loop on select() for a client that connects and downloads some data.
The catch is that they work perfectly when run separately but when run as a test suite, the second test client will fail to…