]> git.ipfire.org Git - thirdparty/squid.git/commit
Make Http parser incremental
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 1 Nov 2013 23:47:58 +0000 (16:47 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 1 Nov 2013 23:47:58 +0000 (16:47 -0700)
commitb6a7fc859fe563a1c6b66914bc83b5081d94d7bb
treef37fc45a0d544566fb263de61127511e2c3ab1b4
parent25f0d354d075dc7bbd4559fbaa948f5daa26b643
Make Http parser incremental

This makes the parser track the start of the un-parsed buffer region and
resume parsing at that point instead of reset to the beginning.

- add state to mark completion of the first line (request-line)
- add unit test for incremental parse states including BWS
- make the state tracking member of HttpParser private
src/HttpParser.cc
src/HttpParser.h
src/client_side.cc
src/tests/testHttpParser.cc
src/tests/testHttpParser.h