if (!unlang) goto send_reply;
} else if (request->reply->code == 257) {
- request->reply->code = FR_CODE_DO_NOT_RESPOND;
+ request->reply->code = 0;
unlang = cf_section_find(request->server_cs, "send", "failure");
if (!unlang) goto send_reply;
/*
* This is an internally generated request. Don't print IP addresses.
*/
- if (request->parent) {
+ if (!request->reply->code) {
+ radlog_request(L_DBG, L_DBG_LVL_1, request, "Failed ID %i",
+ request->reply->id);
+ rdebug_proto_pair_list(L_DBG_LVL_1, request, request->reply->vps, "");
+ return FR_IO_DONE;
+
+ } else if (request->parent) {
radlog_request(L_DBG, L_DBG_LVL_1, request, "Sent %s ID %i",
fr_dict_enum_alias_by_value(NULL, da, fr_box_uint32(request->reply->code)),
request->reply->id);
inst->outstanding--;
- if (buffer[0] == 0) {
+ if (!buffer[0]) {
/*
- * Note that this packet will be sent again if
- * the detail file reader re-starts. Otherwise,
- * it will be dropped without a retry.
*
* @todo - put the original packet onto a list
* for retransmissions, and don't finish with the
* retransmitted. And don't read new ones until
* the old ones are finished.
*/
- DEBUG("Got Do-Not-Respond, not writing reply");
+ DEBUG("Packet failed not writing reply");
} else if (inst->track_progress && (track->done_offset > 0)) {
/*