1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-16 00:00:07 +01:00
libwebsockets/test-server
Andy Green a7109e6ebf valgrind introduce protocol init and destroy user callbacks
To get a clean bill of health from valgrind, we have to have a way to
inform the user code that we're going down and it should free everything
it is holding that was malloc'd.

This patch introduces LWS_CALLBACK_PROTOCOL_DESTROY which each protocol
gets when the context is being destroyed and no more activity will come
after that call.  They can get rid of everything there.

To match it, LWS_CALLBACK_PROTOCOL_INIT is introduced which would allow
one-time init per protocol too.

Signed-off-by: Andy Green <andy.green@linaro.org>
2013-02-11 12:05:54 +08:00
..
.gitignore Ignoring linux build files 2013-01-09 15:46:11 +08:00
favicon.ico refactor-into-dirs.patch 2010-11-01 09:12:17 +00:00
libwebsockets.org-logo.png add libwebsockets.org logo to share 2013-01-16 10:00:39 +08:00
Makefile.am introduce test echo 2013-01-30 12:28:44 +08:00
test-client.c correct test client to close synchronously with last send 2013-02-09 14:27:24 +08:00
test-echo.c change context creation params to struct 2013-02-09 14:01:09 +08:00
test-fraggle.c change context creation params to struct 2013-02-09 14:01:09 +08:00
test-ping.c change context creation params to struct 2013-02-09 14:01:09 +08:00
test-server.c valgrind introduce protocol init and destroy user callbacks 2013-02-11 12:05:54 +08:00
test.html renovate test html 2013-01-31 19:50:57 +08:00