Commit c3251497 authored by antirez's avatar antirez
Browse files

benchmark now outputs the right command line to shorten the TIME_WAIT interval...

benchmark now outputs the right command line to shorten the TIME_WAIT interval on Mac OS X when keep alive is set
parent 0ea663ea
......@@ -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 {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment