[Ovmsdev] Mongoose update

Michael Balzer dexter at expeedo.de
Sun Apr 29 05:46:18 HKT 2018

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).


Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
Fon 02333 / 833 5735 * Handy 0176 / 206 989 26

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvehicles.com/pipermail/ovmsdev/attachments/20180428/a0e72fa6/attachment.htm>

More information about the OvmsDev mailing list