libwebsockets/test-server
Andy Green 6f520a5195 evict all broadcast support
Libwebsockets is fundamentally singlethreaded... the existence of the
fork and broadcast support, especially in the sample server is
giving the wrong idea about how to use it.

This replaces broadcast in the sample server with
libwebsocket_callback_on_writable_all_protocol().  The whole idea of
'broadcast' is removed.

All of the broadcast proxy stuff is removed: data must now be sent
from the callback only.  Doing othherwise is not reliable since the
service loop may close the socket and free the wsi at any time,
invalidating a wsi pointer held by another thread (don't do that!)

Likewise the confirm_legit_wsi api added recently does not help the
other thread case, since if the wsi has been freed dereferencing the
wsi to study if it is legit or not will segfault in that case.  So
this is removed too.

The overall effect is to push user code to only operate inside the
protocol callbacks or external poll loops, ie, single thread context.

Signed-off-by: Andy Green <andy.green@linaro.org>
2013-01-29 22:13:55 +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 zlib not needed if no extensions 2013-01-20 18:26:20 +08:00
test-client.c remove all support for pre v13 protocols 2013-01-21 09:53:35 +08:00
test-fraggle.c remove all support for pre v13 protocols 2013-01-21 09:53:35 +08:00
test-ping.c introduce without extensions 2013-01-20 17:08:31 +08:00
test-server.c evict all broadcast support 2013-01-29 22:13:55 +08:00
test.html add logo to test file 2013-01-16 10:11:34 +08:00