/** timeout for individual rpc requests, in seconds */
uint32_t request_timeout;
+ /*
+ * Set for the timeout in dcerpc_pipe_connect_b_send(), to
+ * allow the timeout not to destory the stack during a nested
+ * event loop caused by gensec_update()
+ */
+ bool inhibit_timeout_processing;
+ bool timed_out;
+
bool verified_pcontext;
};
{
struct composite_context *c = talloc_get_type_abort(private_data,
struct composite_context);
- composite_error(c, NT_STATUS_IO_TIMEOUT);
+ struct pipe_connect_state *s = talloc_get_type_abort(c->private_data, struct pipe_connect_state);
+ if (!s->pipe->inhibit_timeout_processing) {
+ composite_error(c, NT_STATUS_IO_TIMEOUT);
+ } else {
+ s->pipe->timed_out = true;
+ }
}
/*
s->credentials = credentials;
s->lp_ctx = lp_ctx;
+ s->pipe->timed_out = false;
+ s->pipe->inhibit_timeout_processing = false;
+
tevent_add_timer(c->event_ctx, c,
timeval_current_ofs(DCERPC_REQUEST_TIMEOUT, 0),
dcerpc_connect_timeout_handler, c);