curl-glue: catch libcurl attempting to change timeout handler when we destroy a curl...
authorLennart Poettering <lennart@poettering.net>
Sat, 11 May 2024 11:45:44 +0000 (13:45 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 13 May 2024 20:29:15 +0000 (05:29 +0900)
commitc5ecf0949460dd0bf3211db128a385ce6375252e
tree528c2f8f7c212dbe6e22cd24a7ad01cad87a3e52
parentddbfc4d17e586aca61d30d5fccde061a9b223772
curl-glue: catch libcurl attempting to change timeout handler when we destroy a curl context on exit

If we destroy both an event loop and a curl contect object at the same
time, then we get into this weird situation where curl wants us to
reconfigure a timout event source right before destruction, which
sd-event will refuse however, since it is already being shutdown.

Hence, catch that and simply don't bother adjusting the timeout, since
we cannot get back from there anyway.
src/import/curl-util.c