1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-30 00:00:16 +01:00
libwebsockets/lib/core-net
Andy Green 555c34b044 openssl: reuse client SSL_CTX where possible
If you have multiple vhosts with client contexts enabled, under
OpenSSL each one brings in the system cert bundle.

On libwebsockets.org, there are many vhosts and the waste adds up
to about 9MB of heap.

This patch makes a sha256 from the client context configuration, and
if a suitable client context already exists on another vhost, bumps
a refcount and reuses the client context.

In the case client contexts are configured differently, a new one
is created (and is available for reuse as well).
2019-03-18 06:54:38 +08:00
..
adopt.c mingw: windows: make minimal examples build 2019-03-10 08:02:02 +08:00
client.c ipv6: support [ipv6]:port in client proxy 2019-03-10 08:02:02 +08:00
close.c cgi: fix stdin cgiwsi leak when closed early 2019-03-10 08:02:02 +08:00
connect.c LWS_WITH_NETWORK: cmake option for no network code 2019-01-13 07:54:57 +08:00
dummy-callback.c cgi: fix stdin cgiwsi leak when closed early 2019-03-10 08:02:02 +08:00
network.c bzero: replace all with memset 2019-03-10 08:02:02 +08:00
output.c LWS_WITH_NETWORK: cmake option for no network code 2019-01-13 07:54:57 +08:00
pollfd.c smp: take pt lock in poll foreign thread detection 2019-03-10 08:02:02 +08:00
private.h vhost: fix allocated protocol list freeing at destroy time 2019-03-12 11:57:43 +08:00
server.c glibc: if malloc_trim() exists, call it periodically 2019-03-16 08:10:47 +08:00
service.c smp: adopt: deal with load balancing init window 2019-03-10 08:02:02 +08:00
stats.c LWS_WITH_NETWORK: cmake option for no network code 2019-01-13 07:54:57 +08:00
vhost.c openssl: reuse client SSL_CTX where possible 2019-03-18 06:54:38 +08:00
wsi-timeout.c lws_http_mark_sse 2019-01-30 20:59:56 +08:00
wsi.c openssl: reuse client SSL_CTX where possible 2019-03-18 06:54:38 +08:00