Netmanager/Mongoose: use interface specific DNS servers Note: *mongoose update involved*, issue "*git submodule update*". This switches mongoose to use LWIP getaddrinfo() as it is superior to the mongoose resolver. Netmanager then stores DNS servers acquired by connections and restores them accordingly as the default interface changes. Should solve issue #43 <https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/issues/43>. Regards, Michael -- Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal Fon 02333 / 833 5735 * Handy 0176 / 206 989 26
Once again "git submodule update":
Found & fixed a bug in mongoose that kept getaddrinfo() from actually being used. @Marvin8228 <https://github.com/Marvin8228> can you please try again? Update is on my server.
Am 27.04.2018 um 21:32 schrieb Michael Balzer:
This switches mongoose to use LWIP getaddrinfo() as it is superior to the mongoose resolver.
This is not the whole truth. The advantage of the mongoose resolver over getaddrinfo() is asynchronous execution. mg_connect() now blocks the event loop if getaddrinfo() blocks. I'm not sure if we encounter situations where a) getaddrinfo() blocks and b) this actually is a problem. If we do, we can return to using the mongoose resolver and add a call to mg_set_nameserver() in ovms_netmanager to set it to the main DNS of the current default interface (replacing the Google default DNS). Regards, Michael -- Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal Fon 02333 / 833 5735 * Handy 0176 / 206 989 26
participants (1)
-
Michael Balzer