Diff for /libaitrpc/src/cli.c between versions 1.9.2.16 and 1.9.2.17

version 1.9.2.16, 2012/05/18 15:24:33 version 1.9.2.17, 2012/05/18 15:37:58
Line 315  rpc_cli_execCall(rpc_cli_t *cli, int noreply, u_short  Line 315  rpc_cli_execCall(rpc_cli_t *cli, int noreply, u_short 
         if (noreply)    /* we not want reply */          if (noreply)    /* we not want reply */
                 return 0;                  return 0;
   
           wlen = 0;
         /* reply from RPC server */          /* reply from RPC server */
         pfd.events = POLLIN | POLLPRI;          pfd.events = POLLIN | POLLPRI;
         do {          do {
Line 325  rpc_cli_execCall(rpc_cli_t *cli, int noreply, u_short  Line 326  rpc_cli_execCall(rpc_cli_t *cli, int noreply, u_short 
                                         continue;                                          continue;
                                 else                                  else
                                         LOGERR;                                          LOGERR;
                        } else                        } else {
                                rpc_SetErr(ETIMEDOUT, "Timeout, no answer from RPC server");                                if (wlen++ < 7)
                                         continue;
                                 else
                                         rpc_SetErr(ETIMEDOUT, "Timeout, no answer from RPC server");
                         }
                         return -1;                          return -1;
                 }                  }
         } while (0);          } while (0);

Removed from v.1.9.2.16  
changed lines
  Added in v.1.9.2.17


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>