Home
last modified time | relevance | path

Searched hist:"838 ef602498b8d1985a231a06f5e328e2946a81d" (Results 1 – 1 of 1) sorted by relevance

/openbmc/qemu/block/
H A Dcurl.cdiff ff5ca1664af85b24a4180d595ea6873fd3deac57 Mon Oct 24 21:54:30 CDT 2016 Max Reitz <mreitz@redhat.com> block/curl: Remember all sockets

For some connection types (like FTP, generally), more than one socket
may be used (in FTP's case: control vs. data stream). As of commit
838ef602498b8d1985a231a06f5e328e2946a81d ("curl: Eliminate unnecessary
use of curl_multi_socket_all"), we have to remember all of the sockets
used by libcurl, but in fact we only did that for a single one. Since
one libcurl connection may use multiple sockets, however, we have to
remember them all.

Cc: qemu-stable@nongnu.org
Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-id: 20161025025431.24714-4-mreitz@redhat.com
Signed-off-by: Jeff Cody <jcody@redhat.com>
diff 838ef602498b8d1985a231a06f5e328e2946a81d Tue Apr 29 10:03:30 CDT 2014 Matthew Booth <mbooth@redhat.com> 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>