]> 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>
Tue, 1 Oct 2019 21:58:28 +0000 (16:58 -0500)
commit076796fd39129d0b6c96a3bb4038af2f2b180a70
treecc5b6e3f9100517ff07844cee8c78ec7015e8c6f
parent2aba40a2c8813533ebc4af02d181745e4ae96142
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