1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-23 00:00:06 +01:00
libwebsockets/test-apps
Andy Green caaf26c717 libuv: foreign loop detach doesn not require lws running the loop at all
This completely removes the loop self-running stuff.

Static allocations (uv_idle, timers etc) are referenced-counted in the context
same as the wsi are.  When lws wants to close, he first closes all his wsi, then
when that is completed in the uv close callbacks, he closes all of his static
uv handles.  When that is also completed in the uv callbacks, he stops the loop
so the lws context can destroy and exit.

Any direct libuv allocations in protocol handlers must participate in the
reference counting.  Two new apis are provided

 - lws_libuv_static_refcount_add(handle, context) to mark the handle with
   a pointer to the context and increment the global uv object counter

 - lws_libuv_static_refcount_del() which should be used as the close callback
   for your own libuv objects declared in the protocol scope.
2018-04-06 10:38:03 +08:00
..
android align private LWS_NO_EXTENSIONS to be same as public LWS_WITHOUT_EXTENSIONS 2018-04-06 10:38:03 +08:00
private clean up top level of project 2017-09-27 08:24:05 +08:00
.gitignore clean up top level of project 2017-09-27 08:24:05 +08:00
attack.sh attack.sh fixes 2018-01-14 11:32:45 +08:00
candide.zip clean up top level of project 2017-09-27 08:24:05 +08:00
favicon.ico clean up top level of project 2017-09-27 08:24:05 +08:00
fuzxy.c lws_snprintf 2018-03-12 09:28:42 +08:00
http2.png wss-over-h2: show feedback in test page if active 2018-04-06 10:38:03 +08:00
leaf.jpg clean up top level of project 2017-09-27 08:24:05 +08:00
libwebsockets-test-server.service clean up top level of project 2017-09-27 08:24:05 +08:00
libwebsockets.org-logo.png clean up top level of project 2017-09-27 08:24:05 +08:00
lws-cgi-test.sh http2: make usable 2017-10-16 17:13:49 +08:00
lws-common.js http2: make usable 2017-10-16 17:13:49 +08:00
lws-ssh-test-keys Plugins: add ssh-base ssh server plugin 2017-10-16 16:59:57 +08:00
lws-ssh-test-keys.pub Plugins: add ssh-base ssh server plugin 2017-10-16 16:59:57 +08:00
test-client.c mbedtls: wrapper: client: Force mbedTLS to attemp to verify cert 2018-04-06 10:38:03 +08:00
test-echo.c lws_write_ws_flags helper 2018-04-06 10:38:03 +08:00
test-fraggle.c lws_write_ws_flags helper 2018-04-06 10:38:03 +08:00
test-lejp.c lejp: fix float 2018-01-04 10:28:06 +08:00
test-ping.c lws_snprintf 2018-03-12 09:28:42 +08:00
test-server-dumb-increment.c lws_set_timer_usecs: change to usec resolution 2018-04-06 10:38:03 +08:00
test-server-http.c lws_snprintf 2018-03-12 09:28:42 +08:00
test-server-libev.c lws_snprintf 2018-03-12 09:28:42 +08:00
test-server-libevent.c lws_snprintf 2018-03-12 09:28:42 +08:00
test-server-libuv.c libuv: foreign loop detach doesn not require lws running the loop at all 2018-04-06 10:38:03 +08:00
test-server-pthreads.c lws_snprintf 2018-03-12 09:28:42 +08:00
test-server-v2.0.c libuv: foreign loop detach doesn not require lws running the loop at all 2018-04-06 10:38:03 +08:00
test-server.c unixskt: add test server support and cleanup inode on exit 2018-04-06 10:38:03 +08:00
test-server.h mingw: fixes 2017-12-01 11:37:33 +08:00
test-sshd.c win32: remove snprintf mangling 2018-03-09 08:49:59 +08:00
test.html wss-over-h2: show feedback in test page if active 2018-04-06 10:38:03 +08:00
wss-over-h2.png wss-over-h2: show feedback in test page if active 2018-04-06 10:38:03 +08:00