[Qemu-devel] [PATCH v4] block/curl: Don't lose original error when a connection fails.

2015-07-08 Thread Richard W.M. Jones
Currently if qemu is connected to a curl source (eg. web server), and the web server fails / times out / dies, you always see a bogus EIO Input/output error. For example, choose a large file located on any local webserver which you control: $ qemu-img convert -p http://example.com/large.iso

[Qemu-devel] [PATCH v4] block/curl: Don't lose original error when a connection

2015-07-08 Thread Richard W.M. Jones
Since v3: Ditch the generalized anti-flood protection, and just use a simple variable. Rich.