curl: Pass CURLSocket to curl_multi_do()
commit9dbad87d25587ff640ef878f7b6159fc368ff541
authorMax Reitz <mreitz@redhat.com>
Tue, 10 Sep 2019 12:41:33 +0000 (10 14:41 +0200)
committerMax Reitz <mreitz@redhat.com>
Mon, 16 Sep 2019 13:31:11 +0000 (16 15:31 +0200)
tree7c388a28f98aa0e63fdaa6851e272d082cbf2638
parent948403bcb1c7e71dcbe8ab8479cf3934a0efcbb5
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>
block/curl.c