HomeFreeBSD

lib/libc/tests/rpc: Correctly set timeout

Description

lib/libc/tests/rpc: Correctly set timeout

The rpc_control() API does not accept the CLCR_SET_RPCB_TIMEOUT command,
it only accepts RPC_SVC_CONNMAXREC_GET/RPC_SVC_CONNMAXREC_SET, so it was
not doing anything.
Instead of incorrectly calling this API, use clnt_create_timed() instead.

I noticed this because the test was timing out after 120s in the CheriBSD CI.

Reviewed By: ngie
Differential Revision: https://reviews.freebsd.org/D28478

(cherry picked from commit 90b5fc95832da64a5f56295e687379732c33718f)

Details

Provenance
arichardsonAuthored on Feb 13 2021, 1:52 PM
Reviewer
ngie
Differential Revision
D28478: lib/libc/tests/rpc: Correctly set timeout
Parents
R10:2f0161f405d7: usr.bin/jail: Fix tests when using kyua -v parallelism=N
Branches
Unknown
Tags
Unknown