it creates a tcp socket, connects to 127.0.0.1:8080, closes the socket, and repeats
every few iterations, connect blocks for just a little over a second
- this only happens if the client and the server run on the same machine and the connection is on the loopback interface. if the client is running on a different machine, it's fast in all cases
- if the client forks for each iteration, this issue never happens