Diff for /libaitrpc/src/cli.c between versions 1.9.2.11 and 1.9.2.13

version 1.9.2.11, 2012/05/17 15:21:08 version 1.9.2.13, 2012/05/17 21:14:13
Line 288  rpc_cli_execCall(rpc_cli_t *cli, int noreply, u_short  Line 288  rpc_cli_execCall(rpc_cli_t *cli, int noreply, u_short 
         rpc->call_crc ^= rpc->call_crc;          rpc->call_crc ^= rpc->call_crc;
         rpc->call_crc = htons(crcFletcher16((u_short*) buf, wlen / 2));          rpc->call_crc = htons(crcFletcher16((u_short*) buf, wlen / 2));
   
           pfd.fd = cli->cli_sock;
           pfd.events = POLLOUT;
           if ((ret = poll(&pfd, 1, DEF_RPC_TIMEOUT * 1000)) == -1 || 
                           pfd.revents & (POLLERR | POLLHUP | POLLNVAL)) {
                   if (ret)
                           LOGERR;
                   else
                           rpc_SetErr(ETIMEDOUT, "Timeout, no ready to send");
   
                   return -1;
           }
         if ((ret = send(cli->cli_sock, buf, wlen, MSG_NOSIGNAL)) == -1) {          if ((ret = send(cli->cli_sock, buf, wlen, MSG_NOSIGNAL)) == -1) {
                 LOGERR;                  LOGERR;
                 return -1;                  return -1;

Removed from v.1.9.2.11  
changed lines
  Added in v.1.9.2.13


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