I hereby claim:
- I am cullenshane on github.
- I am cullenshane (https://keybase.io/cullenshane) on keybase.
- I have a public key ASCd8bSV_i-I9uhQQfb4AHL_udwyZCNqa2B4bUyEp36Pbwo
To claim this, I am signing this object:
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM scratch | |
ADD http-server /http-server | |
EXPOSE 5000/tcp | |
CMD ["/http-server"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM scratch | |
ADD syn-client /syn-client | |
ENV CONNECTION_DELAY "10" | |
ENV CONCURRENT_CONNECTIONS "200" | |
ENV SERVER "localhost:5000" | |
CMD ["/syn-client"] |