Skip to content

Commit

Permalink
if we're not retransmitting, mark done even on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Oct 12, 2023
1 parent 0b70b6e commit e58b915
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/listen/detail/proto_detail_work.c
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,8 @@ static ssize_t mod_write(fr_listen_t *li, void *packet_ctx, UNUSED fr_time_t req
fr_assert(thread->fd >= 0);

if (!buffer[0]) {
if (!inst->retransmit) goto mark_done;

if (fr_time_eq(track->retry.start, fr_time_wrap(0))) {
fr_retry_init(&track->retry, fr_time(), &inst->retry_config);
} else {
Expand Down

0 comments on commit e58b915

Please sign in to comment.