Skip to Content.
Sympa Menu

ndt-dev - [ndt] r324 committed - more debuging in s2c test, testing shows not all clients...

Subject: NDT-DEV email list created

List archive

[ndt] r324 committed - more debuging in s2c test, testing shows not all clients...


Chronological Thread 
  • From:
  • To:
  • Subject: [ndt] r324 committed - more debuging in s2c test, testing shows not all clients...
  • Date: Wed, 24 Mar 2010 02:37:13 +0000

Revision: 324
Author: rcarlson501
Date: Tue Mar 23 19:36:09 2010
Log: more debuging in s2c test, testing shows not all clients
are entering this test loop.

RAC 3/23/10


http://code.google.com/p/ndt/source/detail?r=324

Modified:
/trunk/src/testoptions.c

=======================================
--- /trunk/src/testoptions.c Tue Mar 23 19:02:58 2010
+++ /trunk/src/testoptions.c Tue Mar 23 19:36:09 2010
@@ -921,7 +921,7 @@
}
testOptions->s2csockfd = I2AddrFD(s2csrv_addr);
testOptions->s2csockport = I2AddrPort(s2csrv_addr);
- log_println(1, " -- port: %d", testOptions->s2csockport);
+ log_println(1, " -- s2c %d port: %d", testOptions->child0, testOptions->s2csockport);
pair.port1 = -1;
pair.port2 = testOptions->s2csockport;

@@ -958,9 +958,11 @@
j = 0;
clilen = sizeof(cli_addr);
for (;;) {
- if ((xmitsfd = accept(testOptions->s2csockfd, (struct sockaddr *) &cli_addr, &clilen)) > 0)
+ xmitsfd = accept(testOptions->s2csockfd, (struct sockaddr *) &cli_addr, &clilen);
+ if (xmitsfd > 0) {
+ log_println(6, "S2C %d, has sfd=%d, read to stream data", testOptions->child0, xmitsfd);
break;
-
+ }
if ((xmitsfd == -1) && (errno == EINTR))
continue;

@@ -974,6 +976,7 @@
conn = web100_connection_from_socket(agent, xmitsfd);

if (xmitsfd > 0) {
+ log_println(6, "S2C child %d, ready to fork()", testOptions->child0);
if (getuid() == 0) {
pipe(mon_pipe2);
if ((mon_pid2 = fork()) == 0) {


  • [ndt] r324 committed - more debuging in s2c test, testing shows not all clients..., ndt, 03/23/2010

Archive powered by MHonArc 2.6.16.

Top of Page