Showing results for 
Search instead for 
Do you mean 

Troubles while RPC use

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
Honored Contributor [Founder]

Re: Troubles while RPC use

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

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.