ah: require parsing complete before detach
authorAndy Green <andy@warmcat.com>
Wed, 28 Jun 2017 04:13:13 +0000 (12:13 +0800)
committerAndy Green <andy@warmcat.com>
Wed, 28 Jun 2017 04:13:13 +0000 (12:13 +0800)
commit8f4f692945205eca9410f5a37da5d5cd7b8a3c74
treef345d0acee0033c7c3223604ece025f67a3b04ba
parent0b629d40370246fbd317172ef6b560720785383d
ah: require parsing complete before detach

Introduce helpers to force to detachable state and to test the ah is
in a detachable state.

Require not only the ah rx buffer is all used, but that the
wsi has completed a full set of headers.
lib/client-handshake.c
lib/client.c
lib/libwebsockets.c
lib/parsers.c
lib/private-libwebsockets.h
lib/server.c
lib/service.c