so that the worker can run detached fake requests, and not send
actual replies
fr_time_tracking_t tracking;
fr_channel_t *channel;
- uint32_t priority;
void *packet_ctx;
fr_listen_t const *listen; //!< How we received this request,
//!< and how we'll send the reply.
+ uint32_t priority;
+ bool detached; //!< if detached, we don't send real replies
};
/** Information to track src/dst ip/port
fr_channel_t *ch;
fr_message_set_t *ms;
+ /*
+ * If it's a detached request, don't send a real reply.
+ * Just toss the request.
+ */
+ if (request->async->detached) {
+ fr_time_tracking_end(&request->async->tracking, fr_time(), &worker->tracking);
+ RDEBUG("finished request.");
+ talloc_free(request);
+ return;
+ }
+
/*
* Allocate and send the reply.
*/