Consume unwanted data on a write that fails
authorAlex Bligh <alex@alex.org.uk>
Sat, 28 May 2011 18:18:51 +0000 (19:18 +0100)
committerAlex Bligh <alex@alex.org.uk>
Sat, 28 May 2011 18:18:51 +0000 (19:18 +0100)
commit946a2a609ef813d7222463ad5c8655ff2842d99c
tree37a808332f7272e1cd657a356de41033dedb0151
parent1497866741e7fe685e634825791e3370665bd6e5
Consume unwanted data on a write that fails

When a write fails, we should consume the unwanted data sent to use. Whilst
currently the server exits (under certain conditions), it does so messily
(attempting to read some incoming data as commands). Instead, throw away
the data for easier debugging.
nbd-server.c