block/curl: Remember all sockets
authorMax Reitz <mreitz@redhat.com>
Tue, 25 Oct 2016 02:54:30 +0000 (04:54 +0200)
committerJeff Cody <jcody@redhat.com>
Tue, 15 Nov 2016 03:47:34 +0000 (22:47 -0500)
commitff5ca1664af85b24a4180d595ea6873fd3deac57
tree9616b7d7fe1f770621dc604b44e934d973cd9012
parent4e7676571bccb42dd49b5efbb91ac49077ea5197
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>
block/curl.c