Test that a disconnect after the write request but before the data is an error

This commit is contained in:
Alex Young
2012-07-03 15:25:39 +01:00
parent a767d4bc8c
commit d16aebf36e
13 changed files with 52 additions and 11 deletions

View File

@@ -101,7 +101,7 @@ void write_not_zeroes(struct client* client, uint64_t from, int len)
fprintf(stderr, "\n");
}
#define DO_READ(dst, len) FATAL_IF_NEGATIVE( \
#define DO_READ(dst, len) ERROR_IF_NEGATIVE( \
readloop( \
client->socket, \
(dst), \