Knowledge Base Ask Cody Resources



 
How can I change the timeout settings in the rpc client?
The function call clnt_control() can be used to change timeout settings for the client objects.

There is one timeout for waiting for a reply, which is for both TCP and UDP clients. Function clnt_call() will return TIMEOUT error if it doesn't receive reply during this timeout value.
clnt_control(clnt, CLSET_TIMEOUT, pointer_to_timeval)

There is one resend timeout specifically for the UDP client, the UDP client may resend the request if it doesn't receive a reply during this timeout value.
clnt_control(clnt, CLSET_RETRY_TIMEOUT, ...)







12/22/2024   Legal notices | PRIVACY Policy |