[netperf-talk] netperf4 doesn't do TCP_NODELAY

Rick Jones rick.jones2 at hp.com
Thu Aug 16 15:32:47 PDT 2007


In the unlikely event that you are using netperf4 and trying to set TCP_NODELAY 
with the "no_delay" socket_args attribute you should know that at present the 
netperf4 sources are missing the check for that property and so will never set 
TCP_NODELAY on a socket.

Once I can get my svn troubles sorted (no idea when) I'll add a fix.  Meanwhile, 
here is a diff:

hpcpc109:~/netperf4_trunk# svn diff src/nettest_bsd.c
Index: src/nettest_bsd.c
===================================================================
--- src/nettest_bsd.c   (revision 231)
+++ src/nettest_bsd.c   (working copy)
@@ -1006,6 +1006,11 @@
      string =  xmlGetProp(args,(const xmlChar *)"recv_offset");
      new_data->recv_offset = atoi((char *)string);

+    string = xmlGetProp(args,(const xmlChar *)"no_delay");
+    if (string) {
+      new_data->no_delay = 1;
+    }
+
      string =  xmlGetProp(args,(const xmlChar *)"burst_count");
      if (string) {
        count = atoi((char *)string);

happy benchmarking,

rick jones


More information about the netperf-talk mailing list