Re: [Qemu-devel] [PATCH] block/curl: Handle failed reads gracefully.

2011-08-18 Thread Kevin Wolf
Am 15.08.2011 11:00, schrieb Nicholas Thomas: Current behaviour if a read fails is for the acb to not get finished. This causes an infinite loop in bdrv_read_em (block.c). The read failure never gets reported to the guest and if the error condition clears, the process never recovers. With

[Qemu-devel] [PATCH] block/curl: Handle failed reads gracefully.

2011-08-15 Thread Nicholas Thomas
Current behaviour if a read fails is for the acb to not get finished. This causes an infinite loop in bdrv_read_em (block.c). The read failure never gets reported to the guest and if the error condition clears, the process never recovers. With this patch, when curl reports a failure we finish