I think this is my last round of patches for issues I identified with the retry filter. With this in place, it should be safe to interject another filter in between retry and the plugin. Eric Blake (5): retry: Don't call into closed plugin tests: Refactor test-retry-reopen-fail.sh tests: Enhance retry test to cover failed reopen server: Move prepare/finalize/close recursion to backend.c server: Ensure .finalize and .close are called as needed docs/nbdkit-filter.pod | 8 ++- server/internal.h | 14 +++-- server/backend.c | 105 ++++++++++++++++++++++++++------ server/connections.c | 5 +- server/filters.c | 35 +++-------- server/plugins.c | 10 +-- filters/retry/retry.c | 26 +++++--- tests/test-retry-reopen-fail.sh | 105 ++++++++++++++++++++++++-------- 8 files changed, 211 insertions(+), 97 deletions(-) -- 2.21.0