[netperf-dev] netperf2 commit notice r448 - trunk/src

raj at netperf.org raj at netperf.org
Tue Jul 26 15:34:27 PDT 2011


Author: raj
Date: 2011-07-26 15:34:27 -0700 (Tue, 26 Jul 2011)
New Revision: 448

Modified:
   trunk/src/nettest_bsd.c
Log:
apply some windows vm timing changes from vmware folks

Modified: trunk/src/nettest_bsd.c
===================================================================
--- trunk/src/nettest_bsd.c	2011-07-25 18:49:32 UTC (rev 447)
+++ trunk/src/nettest_bsd.c	2011-07-26 22:34:27 UTC (rev 448)
@@ -2054,7 +2054,7 @@
       get_tcp_info(send_socket,&tcp_mss);
     }
     
-    if (shutdown(send_socket,SHUT_WR) == SOCKET_ERROR) {
+    if (shutdown(send_socket,SHUT_WR) == SOCKET_ERROR && !times_up) {
       perror("netperf: cannot shutdown tcp stream socket");
       exit(1);
     }
@@ -5122,8 +5122,10 @@
   receive_calls  = 0;
 
   while (!times_up && ((len = recv(s_data, recv_ring->buffer_ptr, recv_size, 0)) != 0)) {
-    if (len == SOCKET_ERROR )
-	{
+    if (len == SOCKET_ERROR ) {
+      if (times_up) {
+	break;
+      }
       netperf_response.content.serv_errno = errno;
       send_response();
       exit(1);
@@ -5157,7 +5159,7 @@
   /* perform a shutdown to signal the sender that */
   /* we have received all the data sent. raj 4/93 */
 
-  if (shutdown(s_data,SHUT_WR) == SOCKET_ERROR) {
+  if (shutdown(s_data,SHUT_WR) == SOCKET_ERROR && !times_up) {
       netperf_response.content.serv_errno = errno;
       send_response();
       exit(1);



More information about the netperf-dev mailing list