Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
package/libwebsockets: add an option to enable lws async dns
Lws now features optional asynchronous, ie, nonblocking recursive DNS resolution done on the event loop, enable `-DLWS_WITH_SYS_ASYNC_DNS=1` at cmake to build it in. The default libc name resolution is via libc `getaddrinfo()`, which is blocking, possibly for quite long periods (seconds). If you are taking care about latency, but want to create outgoing connections, you can't tolerate this exception from the rule that everything in lws is nonblocking. Lws' asynchronous DNS resolver creates a caching name resolver that directly queries the configured nameserver itself over UDP, from the event loop. https://libwebsockets.org/lws-api-doc-main/html/md_READMEs_2README_8async-dns.html Signed-off-by: Bart Van Severen <[email protected]> Signed-off-by: Thomas Devoogdt <[email protected]>
- Loading branch information