add explicit parent child wsi relationships
authorAndy Green <andy.green@linaro.org>
Wed, 2 Mar 2016 01:17:22 +0000 (09:17 +0800)
committerAndy Green <andy.green@linaro.org>
Wed, 2 Mar 2016 10:57:41 +0000 (18:57 +0800)
commit494418abace48baff79c679a25a4e5aa034589a3
treea96ad44e844796ec4db043965a28a77bc5e3553e
parentfe16003644f4a0a3e34790bd8d0f8912a562c568
add explicit parent child wsi relationships

wsi can have a full tree relationship with each other using
linked lists.  closing the parent ensures the children are
closed first.

Convert cgi to use this instead of his cgi-specific sub-wsi
management.

Signed-off-by: Andy Green <andy.green@linaro.org>
changelog
lib/client-handshake.c
lib/libwebsockets.c
lib/libwebsockets.h
lib/private-libwebsockets.h
lib/service.c
test-server/lws-cgi-test.sh