[libvirt] [PATCH 12/16] Ensure we always read a full buffer in tunnelled migration

2011-05-12 Thread Daniel P. Berrange
The 'nbytes' variable was not re-initialized to the buffer size on each iteration of the tunnelled migration loop. While saferead() will ensure a full read, except on EOF, it is clearer to use the real buffer size * src/qemu/qemu_migration.c: Always read full buffer of data ---

Re: [libvirt] [PATCH 12/16] Ensure we always read a full buffer in tunnelled migration

2011-05-12 Thread Eric Blake
On 05/12/2011 10:04 AM, Daniel P. Berrange wrote: The 'nbytes' variable was not re-initialized to the buffer size on each iteration of the tunnelled migration loop. While saferead() will ensure a full read, except on EOF, it is clearer to use the real buffer size *

[libvirt] [PATCH 12/16] Ensure we always read a full buffer in tunnelled migration

2011-05-11 Thread Daniel P. Berrange
The 'nbytes' variable was not re-initialized to the buffer size on each iteration of the tunnelled migration loop. While saferead() will ensure a full read, except on EOF, it is clearer to use the real buffer size * src/qemu/qemu_migration.c: Always read full buffer of data ---