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

raj at netperf.org raj at netperf.org
Tue Jul 12 20:20:52 PDT 2011


Author: raj
Date: 2011-07-12 20:20:52 -0700 (Tue, 12 Jul 2011)
New Revision: 430

Modified:
   trunk/src/netserver.c
Log:
when building a list of listen sockets it is best to actually built a list rather than just have one entry

Modified: trunk/src/netserver.c
===================================================================
--- trunk/src/netserver.c	2011-07-12 23:39:16 UTC (rev 429)
+++ trunk/src/netserver.c	2011-07-13 03:20:52 UTC (rev 430)
@@ -458,9 +458,9 @@
 	  temp_elt->next = listen_list;
 	}
 	else {
-	  listen_list = temp_elt;
 	  temp_elt->next = NULL;
 	}
+	listen_list = temp_elt;
       }
       else {
 	fprintf(stderr,
@@ -469,8 +469,6 @@
 	fflush(stderr);
 	exit(1);
       }
-	  
-      break;
     }
     else {
       /* we consider a bind() or listen() failure a transient and try
@@ -483,9 +481,8 @@
 		errno);
 	fflush(stderr);
       }
-      local_res_temp = local_res_temp->ai_next;
-      continue;
     }
+    local_res_temp = local_res_temp->ai_next;
   }
 
 }



More information about the netperf-dev mailing list