dnstap io, failure to add event closes and attempts to reopen the output.
@@ -757,6 +757,8 @@ static void dtio_add_output_event_read(struct dt_io_thread* dtio)
log_err("dnstap io: out of memory (adding event)");
dtio->event_added = 0;
dtio->event_added_is_write = 0;
+ /* close output and start reattempts to open it */
+ dtio_close_output(dtio);
return;
}
dtio->event_added = 1;
@@ -778,6 +780,8 @@ static void dtio_add_output_event_write(struct dt_io_thread* dtio)
log_err("dnstap io: out of memory (adding event)");
dtio->event_added = 0;
dtio->event_added_is_write = 0;
+ /* close output and start reattempts to open it */
+ dtio_close_output(dtio);
return;
}
dtio->event_added = 1;
