Page MenuHomeFreeBSD

lib/libc/tests/rpc: Correctly set timeout
ClosedPublic

Authored by arichardson on Feb 4 2021, 12:54 PM.
Tags
None
Referenced Files
F102006067: D28478.diff
Wed, Nov 6, 11:20 AM
Unknown Object (File)
Mon, Oct 14, 11:22 AM
Unknown Object (File)
Oct 4 2024, 8:27 PM
Unknown Object (File)
Oct 4 2024, 7:59 AM
Unknown Object (File)
Sep 28 2024, 10:30 PM
Unknown Object (File)
Sep 17 2024, 9:39 AM
Unknown Object (File)
Sep 16 2024, 3:26 AM
Unknown Object (File)
Sep 13 2024, 4:04 AM
Subscribers

Details

Summary

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.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 36705
Build 33594: arc lint + arc unit

Event Timeline

ngie requested changes to this revision.Feb 4 2021, 4:31 PM

Could you please wrap the changes in #ifdef __FreeBSD__ so it'd be easier for me to upstream to NetBSD?

This revision now requires changes to proceed.Feb 4 2021, 4:31 PM

Add #ifdef for easier upstreaming

This revision is now accepted and ready to land.Feb 12 2021, 6:45 PM