1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-23 00:00:06 +01:00
libwebsockets/lib
Andy Green b1a5e6c377 clear down wsi_lookup on allocation and clear pollfd revents if serviced
This should get rid of a valgrind uninitialized report when using extpoll,
and gives a new way to share the poll loop with external sockets.

If a pollfd says it has something, you can just pass it to
libwebsocket_serice_fd() whether it is a socket handled by lws or not.
If it sees it is a lws socket, the traffic will be handled and
pollfd->revents will be zeroed now.

If the socket is foreign to lws, it leaves revents alone.  So you can see
if you should service by checking the pollfd revents after letting
lws try to service it.

Signed-off-by: Andy Green <andy.green@linaro.org>
2013-03-09 12:56:35 +08:00
..
.gitignore Ignoring linux build files 2013-01-09 15:46:11 +08:00
base64-decode.c CMake support + fixed windows build. 2013-02-06 15:49:12 +09:00
client-handshake.c fix no extensions build 2013-02-18 10:43:18 +08:00
client-parser.c reflect send completeness in lws_write return 2013-02-23 10:50:10 +08:00
client.c POLLOUT during wait for server response not an error 2013-03-09 09:09:46 +08:00
daemonize.c style cleanup 2013-02-11 17:13:32 +08:00
extension-deflate-frame.c style cleanup 2013-02-11 17:13:32 +08:00
extension-deflate-frame.h Separate compression levels for server and client, 2013-01-10 12:45:54 +08:00
extension-deflate-stream.c style cleanup 2013-02-11 17:13:32 +08:00
extension-deflate-stream.h remove fixed rx buffer allow definition per protocol 2013-02-08 13:16:07 +08:00
extension.c Fixed DLL compilation on Windows for CMake. 2013-02-13 09:29:26 +08:00
getifaddrs.c style cleanup 2013-02-11 17:13:32 +08:00
getifaddrs.h style cleanup 2013-02-11 17:13:32 +08:00
handshake.c dont leak when protocol agreement probs 2013-03-09 11:52:18 +08:00
libwebsockets.c clear down wsi_lookup on allocation and clear pollfd revents if serviced 2013-03-09 12:56:35 +08:00
libwebsockets.h correct example lws_write in header 2013-03-09 12:01:47 +08:00
Makefile.am disable fstack usage 2013-02-13 09:08:43 +08:00
minilex.c add lexical parser for headers 2013-01-18 01:55:48 +08:00
output.c Fix printf format error 2013-03-09 09:27:49 +08:00
parsers.c dont sweat unkknown method for client 2013-03-09 09:09:55 +08:00
private-libwebsockets.h dont leak when protocol agreement probs 2013-03-09 11:52:18 +08:00
server-handshake.c reflect send completeness in lws_write return 2013-02-23 10:50:10 +08:00
server.c Print SSL error codes as well as the string. 2013-02-22 09:28:15 +08:00
sha-1.c Static variable is now const. 2013-01-09 15:14:31 +08:00