1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-16 00:00:07 +01:00
libwebsockets/lib
Andy Green 86ed65ff00 libuv integration
This gets the libuv stuff plumbed in and working.

Currently it's only workable for some service thread, and there
is an isolated valgrind problem left

==28425== 128 bytes in 1 blocks are definitely lost in loss record 3 of 3
==28425==    at 0x4C28C50: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==28425==    by 0x4C2AB1E: realloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==28425==    by 0x58BBB27: maybe_resize (core.c:748)
==28425==    by 0x58BBB27: uv__io_start (core.c:787)
==28425==    by 0x58C1B80: uv__signal_loop_once_init (signal.c:225)
==28425==    by 0x58C1B80: uv_signal_init (signal.c:260)
==28425==    by 0x58BF7A6: uv_loop_init (loop.c:66)
==28425==    by 0x4157F5: lws_uv_initloop (libuv.c:89)
==28425==    by 0x405536: main (test-server-libuv.c:284)

libuv wants to sign off on all libuv 'handles' that will close, and
callback to do the close confirmation asynchronously.  The wsi close function
is adapted when libuv is in use to work with libuv accordingly and exit the uv
loop the number of remaining wsi is zero.

Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-14 09:31:13 +08:00
..
.gitignore Ignoring linux build files 2013-01-09 15:46:11 +08:00
alloc.c Subject: [PATCH] Add custom allocator support using the realloc() interface 2014-12-05 07:25:24 +08:00
base64-decode.c license clarification and test apps CC zero 2016-02-08 08:44:21 +08:00
client-handshake.c libuv integration 2016-02-14 09:31:13 +08:00
client-parser.c clean pre 1.7 2016-01-29 23:17:43 +08:00
client.c libuv integration 2016-02-14 09:31:13 +08:00
context.c libuv integration 2016-02-14 09:31:13 +08:00
daemonize.c license clarification and test apps CC zero 2016-02-08 08:44:21 +08:00
extension-permessage-deflate.c clean pre 1.7 2016-01-29 23:17:43 +08:00
extension-permessage-deflate.h extension permessage deflate 2016-01-11 11:34:01 +08:00
extension.c libuv integration 2016-02-14 09:31:13 +08:00
getifaddrs.c whitespace trailing mass cleanout 2015-12-14 08:52:03 +08:00
getifaddrs.h Use LWS_HAVE_ instead of just HAVE_ 2015-10-12 09:53:17 +08:00
handshake.c multithread stability 2016-01-26 20:56:56 +08:00
header.c multithreaded service 2016-01-19 20:02:36 +08:00
hpack.c http header malloc pool implement pool 2015-12-25 14:34:20 +08:00
http2.c extension permessage deflate 2016-01-11 11:34:01 +08:00
huftable.h http2 hpack basic decode ok including huff 2014-10-12 08:38:16 +08:00
lextable-strings.h lextable add x-real-ip 2016-01-28 09:40:53 +08:00
lextable.h lextable add x-real-ip 2016-01-28 09:40:53 +08:00
libev.c libuv integration 2016-02-14 09:31:13 +08:00
libuv.c libuv integration 2016-02-14 09:31:13 +08:00
libwebsockets.c libuv integration 2016-02-14 09:31:13 +08:00
libwebsockets.h libuv integration 2016-02-14 09:31:13 +08:00
lws-plat-mbed3.c mbed align with pt changes 2016-01-20 17:35:18 +08:00
lws-plat-mbed3.cpp mbed align with pt changes 2016-01-20 17:35:18 +08:00
lws-plat-unix.c libuv integration 2016-02-14 09:31:13 +08:00
lws-plat-win.c win dont redefine _WINSOCK_DEPRECATED_NO_WARNINGS 2016-01-29 01:26:31 +08:00
minihuf.c whitespace trailing mass cleanout 2015-12-14 08:52:03 +08:00
minilex.c whitespace trailing mass cleanout 2015-12-14 08:52:03 +08:00
output.c clean pre 1.7 2016-01-29 23:17:43 +08:00
parsers.c lws_reset_header_table dont reset NULL 2016-02-09 09:15:02 +08:00
pollfd.c libuv integration 2016-02-14 09:31:13 +08:00
private-libwebsockets.h libuv integration 2016-02-14 09:31:13 +08:00
server-handshake.c clean pre 1.7 2016-01-29 23:17:43 +08:00
server.c libuv integration 2016-02-14 09:31:13 +08:00
service.c libuv integration 2016-02-14 09:31:13 +08:00
sha-1.c clean reduce windows build warnings 2015-12-06 08:00:03 +08:00
ssl-http2.c clean internal refactor 2015-12-17 17:03:59 +08:00
ssl.c libuv integration 2016-02-14 09:31:13 +08:00