rpc_client: retry open on STATUS_PIPE_NOT_AVAILABLE
authorDavid Disseldorp <ddiss@samba.org>
Mon, 3 Mar 2014 18:49:35 +0000 (19:49 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 4 Mar 2014 02:03:24 +0000 (03:03 +0100)
commitebe6627c1f0e6b488a0c456860a055fd5701e84d
tree0999bfe4923e92593aaf573964bdae8bb390d9f9
parentfb2631f5dfd3ec58fd277dbe155afab58f882202
rpc_client: retry open on STATUS_PIPE_NOT_AVAILABLE

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@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/rpc_client/rpc_transport_np.c