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; |