{"schema":"libjg2-1",
"vpath":"/git/",
"avatar":"/git/avatar/",
"alang":"",
"gen_ut":1746417268,
"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": "c11e31547f423af70ef70f848cf928b4dd36e868", "alias": []},"tree": [
{ "name": "mount-origin","mode": "16384", "size":0},
{ "name": "CMakeLists.txt","mode": "33188", "size":805},
{ "name": "README.md","mode": "33188", "size":1233},
{ "name": "localhost-100y.cert","mode": "33188", "size":2106},
{ "name": "localhost-100y.key","mode": "33188", "size":3272},
{ "name": "minimal-http-server-smp.c","mode": "33188", "size":3927}],"s":{"c":1746417268,"u": 784}}
,{"schema":"libjg2-1",
"cid":"fab5c1c24e4589305bff108404271b70",
"oid":{ "oid": "c11e31547f423af70ef70f848cf928b4dd36e868", "alias": []},"blobname": "minimal-examples-lowlevel/http-server/minimal-http-server-smp/README.md", "blob": "# lws minimal http server with multithreaded service\n\nLws supports multithreaded service... build lws with `-DLWS_MAP_SMP\u003d\u003cmax number of threads\u003e`, the\ndefault is 1. If nonzero, some extra pthreads locking is built into lws and it supports multiple\nindependent service threads.\n\n\n\nWhen an incoming connection is accepted, it is bound to the pt with the lowest current wsi\ncount, to keep the load on the threads balanced. Only the pt the wsi is bound to can service\nthe thread, so although there can be as many wsi being serviced simultaneously as there are\nservice threads, a wsi can only be service by the pt it is bound to.\n\nThe effectiveness of the scalability depends on the load. Here is an example of roughly what can be expected\n\n\n\n## build\n\n```\n $ cmake . \u0026\u0026 make\n```\n\n## usage\n\n```\n $ ./lws-minimal-http-server-smp\n[2018/03/07 17:44:20:2409] USER: LWS minimal http server SMP | visit http://localhost:7681\n[2018/03/07 17:44:20:2410] NOTICE: Creating Vhost 'default' port 7681, 1 protocols, IPv6 on\n[2018/03/07 17:44:20:2411] NOTICE: Service threads: 10\n```\n\nVisit http://localhost:7681 and use ab or other testing tools\n\n","s":{"c":1746417268,"u": 212}}
],"g": 2004,"chitpc": 0,"ehitpc": 0,"indexed":0
,
"ab": 1, "si": 0, "db":0, "di":1, "sat":0, "lfc": "0000"}