--- libaitrpc/src/cli.c 2012/05/18 15:24:33 1.9.2.16 +++ libaitrpc/src/cli.c 2012/05/18 15:37:58 1.9.2.17 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: cli.c,v 1.9.2.16 2012/05/18 15:24:33 misho Exp $ +* $Id: cli.c,v 1.9.2.17 2012/05/18 15:37:58 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -315,6 +315,7 @@ rpc_cli_execCall(rpc_cli_t *cli, int noreply, u_short if (noreply) /* we not want reply */ return 0; + wlen = 0; /* reply from RPC server */ pfd.events = POLLIN | POLLPRI; do { @@ -325,8 +326,12 @@ rpc_cli_execCall(rpc_cli_t *cli, int noreply, u_short continue; else LOGERR; - } else - rpc_SetErr(ETIMEDOUT, "Timeout, no answer from RPC server"); + } else { + if (wlen++ < 7) + continue; + else + rpc_SetErr(ETIMEDOUT, "Timeout, no answer from RPC server"); + } return -1; } } while (0);