]> git.ipfire.org Git - thirdparty/qemu.git/commit
curl: Pass CURLSocket to curl_multi_do()
authorMax Reitz <mreitz@redhat.com>
Tue, 10 Sep 2019 12:41:33 +0000 (14:41 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 30 Oct 2019 16:34:26 +0000 (11:34 -0500)
commit0888ddac8e507e54ae69db7ccbae1117d7ec33b1
treefae4e58d89d6e36b5b15dafaecbf0135b2ec2165
parent4be97ef966f5d88a64bcc359d2c72152bc08b322
curl: Pass CURLSocket to curl_multi_do()

curl_multi_do_locked() currently marks all sockets as ready.  That is
not only inefficient, but in fact unsafe (the loop is).  A follow-up
patch will change that, but to do so, curl_multi_do_locked() needs to
know exactly which socket is ready; and that is accomplished by this
patch here.

Cc: qemu-stable@nongnu.org
Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-id: 20190910124136.10565-5-mreitz@redhat.com
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
(cherry picked from commit 9dbad87d25587ff640ef878f7b6159fc368ff541)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
block/curl.c