Page MenuHomeFreeBSD

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

Authored by arichardson on Feb 4 2021, 12:54 PM.
Tags
None
Referenced Files
F83631817: D28478.id83360.diff
Sun, May 12, 9:44 PM
F83602405: D28478.id83360.diff
Sun, May 12, 1:19 PM
Unknown Object (File)
Sat, May 11, 7:12 PM
Unknown Object (File)
Sat, May 11, 1:41 PM
Unknown Object (File)
Fri, May 10, 1:20 PM
Unknown Object (File)
Thu, May 9, 9:31 PM
Unknown Object (File)
Thu, May 9, 1:22 PM
Unknown Object (File)
Wed, May 8, 1:12 PM
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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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