1753856 Members
7254 Online
108809 Solutions
New Discussion юеВ

Troubles while RPC use

 
Vadim Yezhakov
Advisor

Troubles while RPC use

Hi.
I have such problem. When i return output parameter from RPC server to client, and parameter length more then 16kb, the error occured.
I think that there is limit for output parameters length in RPC. Can i make this limit more large?
2 REPLIES 2
RAC_1
Honored Contributor

Re: Troubles while RPC use

Elaborate. What is the error message?? What exactly you are trying to do??
There is no substitute to HARDWORK
Vadim Yezhakov
Advisor

Re: Troubles while RPC use

I want run shell scripts on remote host
I call RPC procedure. Input params for this procedure are shell-script name. Output params are script result and script's stdout and stderr.
The structure of output params:
------------------------------------------
struct script_ret {
int retcode;
struct {
u_int std_out_len;
char *std_out_val;
} std_out;
struct {
u_int std_err_len;
char *std_err_val;
} std_err;
};
------------------------------------------
I trace result on server side before return. And all right. But when i receive result on client and length of std_out_val is more then 16 kb 'clnt_call' NOT return 'RPC_SUCCESS' value.