This is a simple program which is setup to serve as many Wakkas as possible.
If you run the client, you can tune the number of goroutine on the client to make it go faster. If you run out of open files, run ulimit -n
to find out your current number of openable files, and then double it with ulimit -n <n>
. Repeat this until you stop running out of files.
If you change the program so that the client closes the connection, you run out of sockets instead, because the sockets stick around in TIME_WAIT
state instead of being closed instantly. If you are at a loss for sockets, ensure your clients aren't closing the connection first.