]> git.proxmox.com Git - mirror_qemu.git/commit - block/curl.c
curl: Eliminate unnecessary use of curl_multi_socket_all
authorMatthew Booth <mbooth@redhat.com>
Tue, 29 Apr 2014 15:03:30 +0000 (16:03 +0100)
committerKevin Wolf <kwolf@redhat.com>
Wed, 30 Apr 2014 14:34:16 +0000 (16:34 +0200)
commit838ef602498b8d1985a231a06f5e328e2946a81d
tree65f7754fd1d5fd3a74890ced4be2f52c904329af
parentb69cdef876340624bb40a2054d14f298471a40a6
curl: Eliminate unnecessary use of curl_multi_socket_all

curl_multi_socket_all is a deprecated catch-all which checks for
activities on all open curl sockets. We have enough information from
the event loop to check only the sockets with activity. This change
removes use of curl_multi_socket_all in favour of
curl_multi_socket_action called with the relevant handle.

At the same time, it also ensures that the driver only checks for
completion of read operations after reading from a socket, rather than
both reading and writing.

Signed-off-by: Matthew Booth <mbooth@redhat.com>
Tested-by: Richard W.M. Jones <rjones@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/curl.c