1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-23 00:00:06 +01:00
libwebsockets/lib
Andy Green 8f19a3fa9a network interface: defer bindings to absent network interfaces
Previously down network interfaces without an IPv4 address are
removed from the posix api that lists network interfaces.

That means if you bound a vhost listen socket to a particular
interface, it will fail at startup time.

This patch adds these vhosts to a list, starts the vhost without
a listen socket, and checks to see if the vhost's network interface
has appeared while the rest of lws is running.

If it appears, the listen socket is opened on the network interface
and the vhost becomes reachable.
2018-04-06 10:38:03 +08:00
..
client client: http1.1 pipelining 2018-04-06 10:38:03 +08:00
event-libs libuv: run loop to clean up per-pt objects before exiting 2018-04-06 10:38:03 +08:00
ext minimal-examples: add ws pmd example 2018-03-06 09:39:27 +08:00
http2 h2 ws: fixes against chrome 2018-04-06 10:38:02 +08:00
jws lws_snprintf 2018-03-12 09:28:42 +08:00
misc esp32: map basic auth to nvs 2018-02-24 08:14:17 +08:00
plat network interface: defer bindings to absent network interfaces 2018-04-06 10:38:03 +08:00
server network interface: defer bindings to absent network interfaces 2018-04-06 10:38:03 +08:00
tls mingw: also workaround ENOTCONN 2018-04-06 10:38:03 +08:00
alloc.c acme: adaptations through plat for esp32 2017-12-11 13:30:12 +08:00
context.c network interface: defer bindings to absent network interfaces 2018-04-06 10:38:03 +08:00
handshake.c logging: reduce logs related to POST and spa 2018-04-06 10:38:03 +08:00
header.c minimal: dynamic http server 2018-04-06 10:38:03 +08:00
lextable-strings.h parser: add x-auth-token 2017-12-01 11:37:36 +08:00
lextable.h parser: add x-auth-token 2017-12-01 11:37:36 +08:00
libwebsockets.c network interface: defer bindings to absent network interfaces 2018-04-06 10:38:03 +08:00
libwebsockets.h network interface: defer bindings to absent network interfaces 2018-04-06 10:38:03 +08:00
minilex.c whitespace trailing mass cleanout 2015-12-14 08:52:03 +08:00
output.c udp 2018-04-06 10:38:03 +08:00
pollfd.c h2 ws: fixes against chrome 2018-04-06 10:38:02 +08:00
private-libwebsockets.h network interface: defer bindings to absent network interfaces 2018-04-06 10:38:03 +08:00
service.c network interface: defer bindings to absent network interfaces 2018-04-06 10:38:03 +08:00