libwebsockets/lib
Andy Green be9fb919d1 context deprecation
1) This makes lwsws run a parent process with the original permissions.
But this process is only able to respond to SIGHUP, it doesn't do anything
else.

2) You can send this parent process a SIGHUP now to cause it to

 - close listening sockets in existing lwsws processes

 - mark those processes as to exit when the number of active connections
   on the falls to zero

 - spawn a fresh child process from scratch, using latest configuration
   file content, latest plugins, etc.  It can now reopen listening sockets
   if it chooses to, or open different listen ports or whatever.

Notes:

1) lws_context_destroy() has been split into two pieces... the reason for
the split is the first part closes the per-vhost protocols, but since
they may have created libuv objects in the per-vhost protocol storage,
these cannot be freed until after the loop has been run.

That's the purpose of the second part of the context destruction,
lws_context_destroy2().

For compatibility, if you are not using libuv, the first part calls the
second part.  However if you are using libuv, you must now call the
second part from your own main.c after the first part.
2016-12-20 14:37:07 +08:00
..
.gitignore Ignoring linux build files 2013-01-09 15:46:11 +08:00
alloc.c esp8266 initial support 2016-08-10 21:20:23 +08:00
base64-decode.c base64 decode fix lengths 2016-08-10 21:20:23 +08:00
client-handshake.c client: avoid possible NULL deref on error path 2016-12-20 14:37:07 +08:00
client-parser.c ws ping pong on idle connections 2016-08-10 21:20:23 +08:00
client.c client: if NULL protocol vhost same linked list entry 2016-12-20 14:37:07 +08:00
context.c context deprecation 2016-12-20 14:37:07 +08:00
daemonize.c context deprecation 2016-12-20 14:37:07 +08:00
extension-permessage-deflate.c replace LWS_MAX_SOCKET_IO_BUF with context creation info pt_serv_buf_size 2016-05-19 12:34:35 +08:00
extension-permessage-deflate.h extension permessage deflate 2016-01-11 11:34:01 +08:00
extension.c documentation convert to doxygen 2016-07-14 08:57:27 +08:00
getifaddrs.c whitespace trailing mass cleanout 2015-12-14 08:52:03 +08:00
getifaddrs.h esp8266 initial support 2016-08-10 21:20:23 +08:00
handshake.c cgi-retain-timeout-after-POST-send 2016-08-23 14:20:11 +08:00
header.c per-vhost headers and lwsws conf support 2016-08-27 17:07:06 +08:00
hpack.c http2 update integration 2016-04-13 11:53:40 +08:00
http2.c Subject: Fix some typographical and grammatical errors. 2016-10-03 21:31:27 +08:00
huftable.h http2 hpack basic decode ok including huff 2014-10-12 08:38:16 +08:00
lejp-conf.c context deprecation 2016-12-20 14:37:07 +08:00
lejp.c documentation convert to doxygen 2016-07-14 08:57:27 +08:00
lejp.h documentation convert to doxygen 2016-07-14 08:57:27 +08:00
lextable-strings.h token:x-forwarded-for 2016-12-20 14:37:07 +08:00
lextable.h token:x-forwarded-for 2016-12-20 14:37:07 +08:00
libev.c plugins 2016-04-07 09:38:08 +08:00
libuv.c context deprecation 2016-12-20 14:37:07 +08:00
libwebsockets.c context deprecation 2016-12-20 14:37:07 +08:00
libwebsockets.h context deprecation 2016-12-20 14:37:07 +08:00
lws-plat-esp8266.c alias lws_plat_service_tsi to lws_service_tsi in public api 2016-12-16 22:08:12 +08:00
lws-plat-mbed3.c documentation convert to doxygen 2016-07-14 08:57:27 +08:00
lws-plat-mbed3.cpp windows detect client connection error 2016-07-14 08:57:27 +08:00
lws-plat-unix.c context deprecation 2016-12-20 14:37:07 +08:00
lws-plat-win.c context deprecation 2016-12-20 14:37:07 +08:00
minihuf.c whitespace trailing mass cleanout 2015-12-14 08:52:03 +08:00
minilex.c whitespace trailing mass cleanout 2015-12-14 08:52:03 +08:00
output.c RFC7233 HTTP Ranges support for server 2016-12-20 14:37:07 +08:00
parsers.c client: add lws_http_client_http_response api 2016-12-16 22:08:13 +08:00
pollfd.c context deprecation 2016-12-20 14:37:07 +08:00
private-libwebsockets.h context deprecation 2016-12-20 14:37:07 +08:00
ranges.c RFC7233 HTTP Ranges support for server 2016-12-20 14:37:07 +08:00
rewrite.c check oom on lws_malloc 2016-05-12 21:04:33 +08:00
server-handshake.c ws-server: restrict returned Sec-Websocket-Protocol to the chosen name only 2016-12-16 22:08:13 +08:00
server.c context deprecation 2016-12-20 14:37:07 +08:00
service.c context deprecation 2016-12-20 14:37:07 +08:00
sha-1.c polarssl implementation 2016-04-18 20:05:43 +08:00
smtp.c context deprecation 2016-12-20 14:37:07 +08:00
ssl-client.c client ssl hostname check: trim any port on host header 2016-12-20 14:37:07 +08:00
ssl-http2.c http2 update integration 2016-04-13 11:53:40 +08:00
ssl-server.c openssl allow set clear of ssl options from info 2016-06-10 11:09:27 +08:00
ssl.c context deprecation 2016-12-20 14:37:07 +08:00