*/
if (!we_are_master()) {
NO_CHILD_THREAD;
+ request->module = "<REQUEST_DONE>";
request->child_state = REQUEST_DONE;
return;
}
if (!we_are_master()) {
NO_CHILD_THREAD;
+ request->module = "<REQUEST_CLEANUP_DELAY>";
request->child_state = REQUEST_CLEANUP_DELAY;
return;
}
if (request->packet->dst_port == 0) {
RDEBUG("Finished internally proxied request.");
NO_CHILD_THREAD;
+ request->module = "<REQUEST_DONE>";
request->child_state = REQUEST_DONE;
return;
}
request->module = "<delay>";
request->process = request_response_delay;
NO_CHILD_THREAD;
+ request->module = "<REQUEST_RESPONSE_DELAY>";
request->child_state = REQUEST_RESPONSE_DELAY;
}
}
#endif
NO_CHILD_THREAD;
+ request->module = "<REQUEST_DONE>";
request->child_state = REQUEST_DONE;
break;
}
child_state_names[request->child_state],
child_state_names[REQUEST_RUNNING]);
#endif
-#ifdef HAVE_PTHREAD_H
- request->child_pid = NO_SUCH_CHILD_PID;
-#endif
request->handle = fun;
NO_CHILD_THREAD;
/*
* Set the state function, then the state, no child, and
* send the packet.
+ *
+ * The order here is different from other state changes
+ * due to race conditions with replies from the home
+ * server.
*/
request->process = proxy_wait_for_reply;
request->child_state = REQUEST_PROXIED;
+ request->module = "<REQUEST_PROXIED>";
NO_CHILD_THREAD;
/*