mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-01 21:23:51 -09:00
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 <bart.vanseveren@barco.com> Signed-off-by: Thomas Devoogdt <thomas.devoogdt@barco.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
32 lines
890 B
Plaintext
32 lines
890 B
Plaintext
config BR2_PACKAGE_LIBWEBSOCKETS
|
|
bool "libwebsockets"
|
|
depends on !BR2_STATIC_LIBS
|
|
select BR2_PACKAGE_ZLIB
|
|
help
|
|
Libwebsockets is a lightweight pure C library built to use
|
|
minimal CPU and memory resources, and provide fast throughput
|
|
in both directions.
|
|
|
|
https://libwebsockets.org/
|
|
|
|
if BR2_PACKAGE_LIBWEBSOCKETS
|
|
|
|
config BR2_PACKAGE_LIBWEBSOCKETS_EXT_POLL
|
|
bool "enable external poll loop support"
|
|
default y # legacy, was previously always enabled
|
|
help
|
|
Enable external poll loop support code. This was
|
|
unconditionally compiled in for library versions
|
|
prior to 3.2.0.
|
|
|
|
config BR2_PACKAGE_LIBWEBSOCKETS_ASYNC_DNS
|
|
bool "enable async dns support"
|
|
help
|
|
Enable asynchronous DNS resolver that directly queries
|
|
the configured nameserver over UDP, from the event loop.
|
|
|
|
endif
|
|
|
|
comment "libwebsockets needs a toolchain w/ dynamic library"
|
|
depends on BR2_STATIC_LIBS
|