Project homepage Mailing List  Warmcat.com  API Docs  Github Mirror 
{"schema":"libjg2-1", "vpath":"/git/", "avatar":"/git/avatar/", "alang":"en-US,en;q\u003d0.5", "gen_ut":1582267694, "reponame":"libwebsockets", "desc":"libwebsockets lightweight C networking library", "owner": { "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" },"url":"https://libwebsockets.org/repo/libwebsockets", "f":3, "items": [ { "schema":"libjg2-1", "oid":{ "oid": "153be14712d26ddb8859c7d5d6afd14a5be217bf", "alias": [ "refs/heads/master"]},"tree": [ { "name": "mount-origin","mode": "16384", "size":0}, { "name": "CMakeLists.txt","mode": "33188", "size":2498}, { "name": "README.md","mode": "33188", "size":635}, { "name": "minimal-ws-server-threadpool.c","mode": "33188", "size":3658}, { "name": "protocol_lws_minimal_threadpool.c","mode": "33188", "size":8985}],"s":{"c":1582129851,"u": 208}} ,{"schema":"libjg2-1", "cid":"701b0c598f42262657b9291c5865a264", "oid":{ "oid": "153be14712d26ddb8859c7d5d6afd14a5be217bf", "alias": [ "refs/heads/master"]},"blobname": "minimal-examples/ws-server/minimal-ws-server-threadpool/README.md", "blob": "# lws minimal ws server (threadpool)\n\n## build\n\n```\n $ cmake . \u0026\u0026 make\n```\n\nPthreads is required on your system.\n\nThis demonstrates how to cleanly assign tasks bound to a wsi to a thread pool,\nwith a queue if the pool is occupied.\n\nIt creates a threadpool with 3 worker threads and a maxiumum queue size of 4.\n\nThe web page at http://localhost:7681 then starts up 8 x ws connections.\n\n## usage\n\n```\n $ ./lws-minimal-ws-server-threadpool \n[2018/03/13 13:09:52:2208] USER: LWS minimal ws server + threadpool | visit http://localhost:7681\n[2018/03/13 13:09:52:2365] NOTICE: Creating Vhost 'default' port 7681, 2 protocols, IPv6 off\n```\n\n\n","s":{"c":1582129851,"u": 112}} ],"g": 427,"chitpc": 0,"ehitpc": 0,"indexed":0 , "ab": 0, "si": 0, "db":0, "di":0, "sat":0, "lfc": "7d0a"}