[Libguestfs] [libnbd PATCH 0/4] Add some resilience to unexpected structured replies

Eric Blake eblake at redhat.com
Fri Aug 12 02:06:34 UTC 2022


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



More information about the Libguestfs mailing list