[libnbd PATCH 0/4] Add some resilience to unexpected structured replies
by Eric Blake
While working on 64-bit extensions for NBD, I found myself getting
annoyed that the slightest bug kills the entire libnbd connection,
rather than trying to resynchronize with the server, even though the
intent of structured replies is to make resync easier.
Eric Blake (4):
generator: Use static buffer for discaring reads
generator: Refactor handling of structured replies
states: Add new RESYNC state for bad structured replies
states: Use RESYNC to handle more structured reply server bugs
generator/state_machine.ml | 9 +-
generator/states-reply-structured.c | 228 ++++++++++++++--------------
generator/states.c | 37 ++---
3 files changed, 141 insertions(+), 133 deletions(-)
--
2.37.1
2 years, 4 months