importd: Avoid need for fd translation table
authorDave Reisner <dreisner@archlinux.org>
Sat, 6 Jul 2019 16:20:53 +0000 (12:20 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 9 Jul 2019 08:00:13 +0000 (10:00 +0200)
commitd8c72e87a0a2bbc9d898d1620ab21abe85dca0be
tree9149ccae37f3daeee14f7dee9bdd79e6cd0d02f8
parent593aee8f3c7c5edc403ab63addb85e0603c6024f
importd: Avoid need for fd translation table

Make use of curl_multi_assign to associate each IO sd_event_source with
a CURL object. This means we always get passed the right event source
and don't need to worry about looking up the associated CURL object,
particularly in the case where the FD has been closed on a REMOVE event.
src/import/curl-util.c
src/import/curl-util.h