1# lws minimal ws server (threadpool) 2 3## build 4 5``` 6 $ cmake . && make 7``` 8 9Pthreads is required on your system. 10 11This demonstrates how to cleanly assign tasks bound to a wsi to a thread pool, 12with a queue if the pool is occupied. 13 14It creates a threadpool with 3 worker threads and a maxiumum queue size of 4. 15 16The web page at http://localhost:7681 then starts up 8 x ws connections. 17 18## usage 19 20``` 21 $ ./lws-minimal-ws-server-threadpool 22[2018/03/13 13:09:52:2208] USER: LWS minimal ws server + threadpool | visit http://localhost:7681 23[2018/03/13 13:09:52:2365] NOTICE: Creating Vhost 'default' port 7681, 2 protocols, IPv6 off 24``` 25 26 27