]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
lib/libc/tests/rpc: Correctly set timeout
authorAlex Richardson <arichardson@FreeBSD.org>
Sat, 13 Feb 2021 13:52:59 +0000 (13:52 +0000)
committerAlex Richardson <arichardson@FreeBSD.org>
Wed, 17 Mar 2021 09:57:00 +0000 (09:57 +0000)
commitb40b1ae9d59d15ddbb2a7ddd1d5291d3b71e227b
treec2dbc0ff66f56c650e5a975b1741f628abbbd10b
parent2f0161f405d74974f9ac74d8502de9ce6ba31728
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)
contrib/netbsd-tests/lib/libc/rpc/t_rpc.c