From 38c4a06ecb8743f37b40dfde4c63b1d8492c9f45 Mon Sep 17 00:00:00 2001 From: Sean Hefty Date: Mon, 28 May 2012 01:47:54 -0700 Subject: [PATCH] Refresh of rstream-opt --- examples/rstream.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/rstream.c b/examples/rstream.c index ae4574b1..65529abe 100644 --- a/examples/rstream.c +++ b/examples/rstream.c @@ -365,11 +365,11 @@ static void set_options(int rs) sizeof buffer_size); rs_setsockopt(rs, SOL_SOCKET, SO_RCVBUF, (void *) &buffer_size, sizeof buffer_size); - } else if (optimization == opt_bandwidth) { + } /* else if (optimization == opt_bandwidth) { val = 1 << 20; rs_setsockopt(rs, SOL_SOCKET, SO_SNDBUF, (void *) &val, sizeof val); rs_setsockopt(rs, SOL_SOCKET, SO_RCVBUF, (void *) &val, sizeof val); - } + } */ val = 1; rs_setsockopt(rs, IPPROTO_TCP, TCP_NODELAY, (void *) &val, sizeof(val)); @@ -382,7 +382,7 @@ static void set_options(int rs) if (optimization == opt_latency) val = 384; else if (optimization == opt_bandwidth) - val = 0; + val = 32; // 0; else val = 64; -- 2.45.2