benchmark now outputs the right command line to shorten the TIME_WAIT interval on Mac OS X when keep alive is set

This commit is contained in:
antirez 2009-10-03 10:54:27 +02:00
parent 0ea663ea01
commit c32514972c

View File

@ -421,7 +421,7 @@ int main(int argc, char **argv) {
parseOptions(argc,argv);
if (config.keepalive == 0) {
printf("WARNING: keepalive disabled, you probably need 'echo 1 > /proc/sys/net/ipv4/tcp_tw_reuse' in order to use a lot of clients/requests\n");
printf("WARNING: keepalive disabled, you probably need 'echo 1 > /proc/sys/net/ipv4/tcp_tw_reuse' for Linux and 'sudo sysctl -w net.inet.tcp.msl=1000' for Mac OS X in order to use a lot of clients/requests\n");
}
do {