]> git.ipfire.org Git - thirdparty/squid.git/commit
Separated BinaryTokenizer commits from context debugging. Polished.
authorAlex Rousskov <rousskov@measurement-factory.com>
Sat, 30 Apr 2016 03:35:46 +0000 (21:35 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Sat, 30 Apr 2016 03:35:46 +0000 (21:35 -0600)
commitc3149111e45340cb60a8f3c28a418ae96e9b67e8
treeb98aee2a03ed737079461e5386e909fbd02bcaa1
parentaa6896b41aa2be337284e9eb75b7f2bfe5c8e862
Separated BinaryTokenizer commits from context debugging. Polished.

Commits are relatively rare events specific to incremental parsing. Most
parsers are not incremental and do not commit/rollback. However, all
parsers need to debug what they parse. Thus, it was wrong to combine
commits with context debugging.

BinaryTokenizer single-context debugging did not support nested contexts
(such as Hello.version.major) and reported wrong FieldGroup sizes for
some parsed structures. The new BinaryTokenizerContext does not have
these problems and is more general (but still needs more polishing
work).

Also polished many field names, comments, debug messages, and some code.
src/parser/BinaryTokenizer.cc
src/parser/BinaryTokenizer.h
src/security/Handshake.cc
src/security/Handshake.h