mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-16 00:00:07 +01:00
![]() https://github.com/warmcat/libwebsockets/issues/1423 If you vhost->options has the flag LWS_SERVER_OPTION_VHOST_UPG_STRICT_HOST_CHECK, then if the server is sent an upgrade request, the content of the Host: header is required to match the vhost name + port. The port is set to the well-known values of 80 and 443 if no :port on the host: value, depending on tls or not on the connection. minimal-ws-server can now take a -h flag to set this. lejp-conf (eg, lwsws) can now take a flag strict-host-check on the vhost to enable it as well. |
||
---|---|---|
.. | ||
minimal-ws-broker | ||
minimal-ws-server | ||
minimal-ws-server-echo | ||
minimal-ws-server-pmd | ||
minimal-ws-server-pmd-bulk | ||
minimal-ws-server-ring | ||
minimal-ws-server-threadpool | ||
minimal-ws-server-threads | ||
README.md |
Example | Demonstrates |
---|---|
minimal-ws-broker | Simple ws server with a publish / broker / subscribe architecture |
minimal-ws-server-echo | Simple ws server that listens and echos back anything clients send |
minimal-ws-server-pmd-bulk | Simple ws server showing how to pass bulk data with permessage-deflate |
minimal-ws-server-pmd | Simple ws server with permessage-deflate support |
minimal-ws-server-ring | Like minimal-ws-server but holds the chat in a multi-tail ringbuffer |
minimal-ws-server-threadpool | Demonstrates how to use a worker thread pool with lws |
minimal-ws-server-threads | Simple ws server where data is produced by different threads |
minimal-ws-server | Serves an index.html over http that opens a ws shared chat client in a browser |