Created attachment 13257 [details] rpcclient-manpages-timeout.patch rpcclient has built-in timeout (10sec) in source3/rpc_client/cli_pipe.c. #define RPCCLI_DEFAULT_TIMEOUT 10000 /* 10 seconds. */ This default can be changed by the timeout keyword. For example: rpcclient localhost -c 'timeout 20000; enumprinters' It doesn't seem to be documented in the manpages. Here is a patch adding it to the man.
docs-xml/manpages/rpcclient.1.xml has: <varlistentry><term>timeout</term><listitem><para>Set timeout (in milliseconds) for RPC operations</para></listitem></varlistentry> Looks like it was fixed in 2d7740f65c69497de665043051228f6315de4f5c (2021).