[netperf-dev] netperf2 commit notice r214 - trunk/src
raj at netperf.org
raj at netperf.org
Mon Feb 4 15:58:50 PST 2008
Author: raj
Date: 2008-02-04 15:58:49 -0800 (Mon, 04 Feb 2008)
New Revision: 214
Modified:
trunk/src/nettest_omni.c
Log:
omni fixes for counts of send and recv calls
Modified: trunk/src/nettest_omni.c
===================================================================
--- trunk/src/nettest_omni.c 2008-02-04 22:32:45 UTC (rev 213)
+++ trunk/src/nettest_omni.c 2008-02-04 23:58:49 UTC (rev 214)
@@ -3078,7 +3078,7 @@
recv_ring = NULL;
/* you will keep running the test until you get it right! :) */
- while (((confidence < 0) && (confidence_iteration < iteration_max)) ||
+ while (((confidence < 0) && (confidence_iteration <= iteration_max)) ||
(confidence_iteration <= iteration_min)) {
trans_completed = 0;
@@ -3087,6 +3087,9 @@
times_up = 0;
bytes_sent = 0;
bytes_received = 0;
+ local_send_calls = 0;
+ local_receive_calls = 0;
+
#ifdef WANT_FIRST_BURST
/* we have to remember to reset the number of transactions
outstanding and the "congestion window for each new
@@ -3456,6 +3459,7 @@
perror("send_omni: initial burst data send error");
exit(-1);
}
+ local_send_calls += 1;
requests_outstanding += 1;
}
@@ -4236,7 +4240,10 @@
omni_response->so_sndavoid = loc_sndavoid;
send_response();
-
+
+ local_send_calls = 0;
+ local_receive_calls = 0;
+
addrlen = sizeof(peeraddr_in);
/* Now it's time to start receiving data on the connection. We will */
More information about the netperf-dev
mailing list