block.curl: adding 'timeout' option
authorDaniel Henrique Barboza <danielhb@linux.vnet.ibm.com>
Wed, 13 Aug 2014 15:44:27 +0000 (12:44 -0300)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 29 Aug 2014 09:46:57 +0000 (10:46 +0100)
commit212aefaa53d142baa9a22f5aadd2e72eb916c0c0
tree9ac89ef774853fcd9cec92a84ae1d7c02ead2652
parent28fa7133b89555355418aeee4fca01cae2081aeb
block.curl: adding 'timeout' option

The curl hardcoded timeout (5 seconds) sometimes is not long
enough depending on the remote server configuration and network
traffic. The user should be able to set how much long he is
willing to wait for the connection.

Adding a new option to set this timeout gives the user this
flexibility. The previous default timeout of 5 seconds will be
used if this option is not present.

Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Daniel Henrique Barboza <danielhb@linux.vnet.ibm.com>
Reviewed-by: Benoit Canet <benoit.canet@nodalink.com>
Tested-by: Richard W.M. Jones <rjones@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/curl.c
qemu-options.hx