mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-16 00:00:07 +01:00
![]() This patch splits out some lws_context members into a new lws_vhost struct. - ssl state and options per vhost - SSL_CTX for serving and client per vhost - protocols[] per vhost - extensions[] per vhost lws_context maintains a linked list of lws_vhosts. The same lws_context_creation_info struct is used to regulate both the context creation and to create vhosts: for backward compatibility if you didn't provide the new LWS_SERVER_OPTION_EXPLICIT_VHOSTS option, then a default vhost is created at context creation time using the same info data as the context itself. If you will have multiple vhosts though, you should give the LWS_SERVER_OPTION_EXPLICIT_VHOSTS option at context creation time, create the context first and then the vhosts afterwards using lws_create_vhost(contest, &info); Although there is a lot of housekeeping to implement this change, there is almost no additional overhead if you don't use multiple vhosts and very little api impact (no changes to test apps). Signed-off-by: Andy Green <andy@warmcat.com> |
||
---|---|---|
.. | ||
.gitignore | ||
attack.sh | ||
favicon.ico | ||
fuzxy.c | ||
leaf.jpg | ||
libwebsockets-test-server.service | ||
libwebsockets.org-logo.png | ||
lws-cgi-test.sh | ||
test-client.c | ||
test-echo.c | ||
test-fraggle.c | ||
test-ping.c | ||
test-server-dumb-increment.c | ||
test-server-echogen.c | ||
test-server-http.c | ||
test-server-libev.c | ||
test-server-libuv.c | ||
test-server-mirror.c | ||
test-server-pthreads.c | ||
test-server-status.c | ||
test-server.c | ||
test-server.h | ||
test.html |