dnsmasq 2.86 may take more than 10 seconds to load
NetworkManager hardcoded a 10s delay before killing dnsmasq and restarting it again.
priv->main_timeout_source = nm_g_timeout_add_source(10000, spawn_timeout_cb, self);
As shown in https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/blob/d1fd6eb53bff65807f97535713d5f8959dbb8cbc/src/core/dns/nm-dns-dnsmasq.c#L1193
Unfortunately dnsmasq 2.86 is so inefficient in handling large config files (~60k lines) that it may take longer than 10s even to be able to present itself on dbus. I'm wondering if adding a configurable timeout setting is considered a viable option to this problem.
Currently I had no better option other than downgrading to dnsmasq 2.85 which is perfectly fine with the 10s limit.
Edited by JerryXiao