unionize header token array
authorAndy Green <andy.green@linaro.org>
Wed, 6 Feb 2013 11:23:40 +0000 (20:23 +0900)
committerAndy Green <andy.green@linaro.org>
Thu, 7 Feb 2013 12:30:56 +0000 (20:30 +0800)
commit68a672bb4468e98c339987404c32f39a6b86e5fb
treee9e1346c1fd2bc35dab923d03863f3142260888f
parenta2b3a36e44f0d60cf2a52c9ecc16e14369e3ce26
unionize header token array

This reduces the size of struct libwebscocket from 4840 to 4552
on x86_64

There are also big benefits on malloc pool fragmentation and
allocation, the header allocations only exist between the first
peer communication and websocket connection establishment for
both server and client.

Signed-off-by: Andy Green <andy.green@linaro.org>
lib/client-handshake.c
lib/client.c
lib/handshake.c
lib/parsers.c
lib/private-libwebsockets.h
lib/server-handshake.c
lib/server.c