Handling DCERPC Broken Connections in Endpoint Server

Andrew Bartlett abartlet at samba.org
Tue Mar 13 00:20:51 UTC 2018

On Fri, 2018-03-09 at 15:37 -0500, Murray McCulligh via samba-technical 
> Currently if a connection is broken and an async RPC call is pending,
> the connection is placed on the broken connections list.  These are
> cleaned up if a future connection is created.  However if the
> standard process model (multi-process) is being used by and endpoint
> server no future connections will be created in that same process and
> the connection is never cleaned up.
> Is it possible to make dcesrv_cleanup_broken_connections
> (source4/rpc_server/dcerpc_server.c) a public method?  (Adding to the
> header and adding _PUBLIC_ to the function definition) 
> This would allow the endpoint server to call it if it detects the
> async RPC call is complete.
> I don’t see any obvious issues with this change, there are other
> functions such as dcesrv_reply that are public to complete the async
> RPC call.

That sound reasonable Murray.  Could you come up with a patch and
ideally a test case?

Where in particular are you seeing this, and what happens?  (To better
understand your use case).


Andrew Bartlett
Andrew Bartlett
Authentication Developer, Samba Team         https://samba.org
Samba Development and Support, Catalyst IT   

More information about the samba-technical mailing list