1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-23 00:00:06 +01:00
libwebsockets/lib/server
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
..
access-log.c coverity 188315: reject wsi with NULL vhost earlier 2018-04-06 10:38:03 +08:00
cgi.c pthreads: more locking 2018-03-05 16:49:28 +08:00
daemonize.c daemonize: fix missing lws_malloc reason param 2017-10-18 20:19:46 +08:00
fops-zip.c lws_snprintf 2018-03-12 09:28:42 +08:00
lejp-conf.c lwsws: fix inherited vhost info 2018-04-06 10:38:03 +08:00
lws-spa.c logging: reduce logs related to POST and spa 2018-04-06 10:38:03 +08:00
parsers.c align private LWS_NO_EXTENSIONS to be same as public LWS_WITHOUT_EXTENSIONS 2018-04-06 10:38:03 +08:00
peer-limits.c udp 2018-04-06 10:38:03 +08:00
ranges.c refactor: subdirs for source in lib 2017-10-16 17:28:37 +08:00
rewrite.c refactor: subdirs for source in lib 2017-10-16 17:28:37 +08:00
server-handshake.c align private LWS_NO_EXTENSIONS to be same as public LWS_WITHOUT_EXTENSIONS 2018-04-06 10:38:03 +08:00
server.c network interface: defer bindings to absent network interfaces 2018-04-06 10:38:03 +08:00
ssl-server.c LWS_SERVER_OPTION_ALLOW_NON_SSL_ON_SSL_PORT: protect against zero length packet causing spin when deciding if tls or not tls 2018-04-06 10:38:02 +08:00