[PATCH] rpc_client: retry open on STATUS_PIPE_NOT_AVAILABLE
jra at samba.org
Mon Mar 3 16:45:54 MST 2014
On Mon, Mar 03, 2014 at 07:49:35PM +0100, David Disseldorp wrote:
> Windows Server starts some named pipe services on demand, and responds
> to initial open requests with STATUS_PIPE_NOT_AVAILABLE. The FssagentRpc
> named pipe on Windows Server 2012 exhibits this behaviour.
> This change sees rpcclient retry named pipe open requests when the
> server responds with STATUS_PIPE_NOT_AVAILABLE. The retry logic is
> contained in an asynchronous tevent_timer callback, to allow for
> non-blocking callers.
> Signed-off-by: David Disseldorp <ddiss at samba.org>
OK - LGTM, I was worried about the incrementing
retries variable with no limit, but then I noticed
the state->abs_timeout variable :-).
Pushed to autobuild !
More information about the samba-technical