autobahn report final frag only on final rx bufload
authorAndy Green <andy.green@linaro.org>
Mon, 28 Dec 2015 04:45:52 +0000 (12:45 +0800)
committerAndy Green <andy.green@linaro.org>
Mon, 28 Dec 2015 04:45:52 +0000 (12:45 +0800)
commit41434fad532edf6df6913994299f72ea0035dbdd
treeff7e2fbe3a94850bff3dea43c6cbd8ab1ca60655
parent4c9d89576888e72103cf4aaa4c5ddb65bfe920e7
autobahn report final frag only on final rx bufload

If the final message fragment contains a payload that has to be
handled in multiple RX callbacks, until now we reported the ws
fragment header FIN state in lws_is_final_fragment().

That was correct, but it's kind of not useful to hear that the
intermediate bufferloads are "final".  So now we delay
reporting the logical ws fragment FIN until the final part of
his payload is delivered.

This gets us Autobahn 1.1.6 working.

Signed-off-by: Andy Green <andy.green@linaro.org>
lib/libwebsockets.c